Need to globalise text and set the array chunk

This commit is contained in:
Matt Pass
2016-07-11 08:46:15 +01:00
parent 63364001ea
commit 313002e4a0

View File

@@ -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);