From: Andrew Dolgov Date: Thu, 7 Jul 2016 07:02:55 +0000 (+0300) Subject: test if mb_internal_encoding() is available in functions.php head X-Git-Tag: 16.8~19 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e6905f7f875db71c934693732b3e03f852268e2c;p=tt-rss.git test if mb_internal_encoding() is available in functions.php head --- diff --git a/include/functions.php b/include/functions.php index d6bd5fb7..3ccc09d7 100755 --- a/include/functions.php +++ b/include/functions.php @@ -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);