Workaround for missing librecode
authorRoland Häder <roland@mxchange.org>
Wed, 11 Mar 2009 00:34:53 +0000 (00:34 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 11 Mar 2009 00:34:53 +0000 (00:34 +0000)
inc/classes/main/template/class_BaseTemplateEngine.php

index d7bf8ea..8969e4e 100644 (file)
@@ -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();