]> git.wh0rd.org - tt-rss.git/commitdiff
test if mb_internal_encoding() is available in functions.php head
authorAndrew Dolgov <noreply@fakecake.org>
Thu, 7 Jul 2016 07:02:55 +0000 (10:02 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Thu, 7 Jul 2016 07:02:55 +0000 (10:02 +0300)
include/functions.php

index d6bd5fb731295b33efd720327c2565c2380253cc..3ccc09d751d8474748794477beecd9a495843990 100755 (executable)
@@ -16,7 +16,9 @@
 
        libxml_disable_entity_loader(true);
 
-       mb_internal_encoding("UTF-8");
+       // separate test because this is included before sanity checks
+       if (function_exists("mb_internal_encoding")) mb_internal_encoding("UTF-8");
+
        date_default_timezone_set('UTC');
        if (defined('E_DEPRECATED')) {
                error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);