From 313002e4a086d418747bf48ab70f3a5d619ff2da Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Mon, 11 Jul 2016 08:46:15 +0100 Subject: [PATCH] Need to globalise text and set the array chunk --- lib/settings-common.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/settings-common.php b/lib/settings-common.php index 1946978..875cebb 100644 --- a/lib/settings-common.php +++ b/lib/settings-common.php @@ -130,6 +130,9 @@ function xssClean($data,$type) { // returns a UTF8 based string with any UFT8 BOM removed function toUTF8noBOM($string,$message) { + global $text; + $t = $text['settings-common']; + // Attempt to detect encoding if (function_exists('mb_detect_encoding')) { $strictUTF8 = mb_detect_encoding($string, 'UTF-8', true);