From 2f45e26a38542d1ced5a2fad8537f3af9c080267 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 11 Mar 2009 00:34:53 +0000 Subject: [PATCH] Workaround for missing librecode --- inc/classes/main/template/class_BaseTemplateEngine.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); -- 2.39.5