mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-60437 blocks: HTML block title multilang
This commit is contained in:
parent
159b4e5d8c
commit
6586118e0f
1 changed files with 5 additions and 1 deletions
|
@ -37,7 +37,11 @@ class block_html extends block_base {
|
|||
}
|
||||
|
||||
function specialization() {
|
||||
$this->title = isset($this->config->title) ? format_string($this->config->title) : format_string(get_string('newhtmlblock', 'block_html'));
|
||||
if (isset($this->config->title)) {
|
||||
$this->title = $this->title = format_string($this->config->title, true, ['context' => $this->context]);
|
||||
} else {
|
||||
$this->title = get_string('newhtmlblock', 'block_html');
|
||||
}
|
||||
}
|
||||
|
||||
function instance_allow_multiple() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue