Merge branch 'MDL-60247-multilang-html-glossary-block-titles' of https://github.com/lucaboesch/moodle

This commit is contained in:
David Monllao 2017-10-19 10:31:08 +02:00
commit d07a4f9872

View file

@ -50,7 +50,7 @@ class block_glossary_random extends block_base {
if (empty($this->config->title)) { if (empty($this->config->title)) {
$this->title = get_string('pluginname','block_glossary_random'); $this->title = get_string('pluginname','block_glossary_random');
} else { } else {
$this->title = $this->config->title; $this->title = $this->title = format_string($this->config->title, true, ['context' => $this->context]);
} }
if (empty($this->config->glossary)) { if (empty($this->config->glossary)) {