From 152a1e32f0e067df4b2b97f5027597f38acaf169 Mon Sep 17 00:00:00 2001
From: Kathrin Osswald <kathrin.osswald@uni-ulm.de>
Date: Mon, 27 May 2019 09:49:59 +0200
Subject: [PATCH] Added multilanguage filtering to the login background image
 texts.

---
 CHANGES.md   | 1 +
 locallib.php | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGES.md b/CHANGES.md
index 3c5f021..d54a152 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -6,6 +6,7 @@ Changes
 
 ### Unreleased
 
+* 2019-05-27 - Added multilanguage filtering to the login background image texts.
 * 2019-05-24 - Prevent back-to-top button from being printed.
 * 2019-05-03 - Added a setting to be able to add texts to your uploaded background images for the login page.
 * 2019-05-02 - Added setting to be able to add additional resources to the theme.
diff --git a/locallib.php b/locallib.php
index d072026..9c4c8d9 100644
--- a/locallib.php
+++ b/locallib.php
@@ -127,7 +127,7 @@ function theme_boost_campus_get_loginbackgroundimage_text() {
             $settings = explode("|", $line);
             // Compare the filenames for a match and return the text that belongs to the randomly selected image.
             if (strcmp($filename, $settings[0]) == 0) {
-                return $settings[1];
+                return format_string($settings[1]);
                 break;
             }
         }
-- 
GitLab