From e6905f7f875db71c934693732b3e03f852268e2c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 7 Jul 2016 10:02:55 +0300 Subject: [PATCH] test if mb_internal_encoding() is available in functions.php head --- include/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.2