From 8ccecc52b076f7c716ba8455c208575968d68cd1 Mon Sep 17 00:00:00 2001 From: Gareth J Barnard Date: Wed, 21 Dec 2016 21:34:46 +0000 Subject: [PATCH] Fix #798: Slider title needs to support multi-lang filter. --- CHANGES.txt | 1 + classes/toolbox.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 8871aa8a..84e4cb53 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,5 +1,6 @@ New in 3.1.1.6 ============== +- FIX: Issue #798: Slider title needs to support multi-lang filter. - FIX: Course category multi-lang, ref: https://moodle.org/mod/forum/discuss.php?d=344426#p1389008. New in 3.1.1.5 diff --git a/classes/toolbox.php b/classes/toolbox.php index 4cb1eeb3..2bafb30e 100644 --- a/classes/toolbox.php +++ b/classes/toolbox.php @@ -292,7 +292,7 @@ static public function render_indicators($numberofslides) { static public function render_slide($slideno, $captionoptions) { $slideurl = self::get_setting('slide'.$slideno.'url'); $slideurltarget = self::get_setting('slide'.$slideno.'target'); - $slidetitle = self::get_setting('slide'.$slideno); + $slidetitle = format_string(self::get_setting('slide'.$slideno)); $slidecaption = self::get_setting('slide'.$slideno.'caption', 'format_html'); if ($slideurl) { // Strip links from the caption to prevent link in a link.