diff --git a/blocks/glossary_random/block_glossary_random.php b/blocks/glossary_random/block_glossary_random.php index 4ef7515ea777c..5f15e8e082b29 100644 --- a/blocks/glossary_random/block_glossary_random.php +++ b/blocks/glossary_random/block_glossary_random.php @@ -50,7 +50,7 @@ function specialization() { if (empty($this->config->title)) { $this->title = get_string('pluginname','block_glossary_random'); } else { - $this->title = $this->config->title; + $this->title = format_string($this->config->title, true, ['context' => $this->context]); } if (empty($this->config->glossary)) {