From d93d2a0d86a8eee3f431c3e2965dab00ef442c7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Thu, 28 Sep 2017 09:10:33 +0200 Subject: [PATCH] MDL-60247 blocks: Multilang in Random glossary and in HTML block titles. --- blocks/glossary_random/block_glossary_random.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {