From: Roland Häder Date: Wed, 11 Mar 2009 00:34:53 +0000 (+0000) Subject: Workaround for missing librecode X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2f45e26a38542d1ced5a2fad8537f3af9c080267;p=core.git Workaround for missing librecode --- diff --git a/inc/classes/main/template/class_BaseTemplateEngine.php b/inc/classes/main/template/class_BaseTemplateEngine.php index d7bf8ea6..8969e4e9 100644 --- a/inc/classes/main/template/class_BaseTemplateEngine.php +++ b/inc/classes/main/template/class_BaseTemplateEngine.php @@ -1268,7 +1268,11 @@ class BaseTemplateEngine extends BaseFrameworkSystem { } // END - if // Convert all to UTF8 - $content = recode("html..utf8", $content); + if (function_exists('recode')) { + $content = recode("html..utf8", $content); + } else { + // @TODO We need to find a fallback solution here + } // END - if // Get an XML parser $xmlParser = xml_parser_create();