]> git.mxchange.org Git - core.git/commitdiff
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 d7bf8ea63de03b1d45ce2c16953ccc1acef5734f..8969e4e90deae5e5110e579699af231848f50356 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();