summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2016-07-07 10:02:55 +0300
committerAndrew Dolgov <[email protected]>2016-07-07 10:02:55 +0300
commite6905f7f875db71c934693732b3e03f852268e2c (patch)
tree0fe45994994b3726feb2d82c5fa3718e9a1e6e3b /include
parenteb95d1bddf12c6bd11d2d3af5a524e1216ea2264 (diff)
test if mb_internal_encoding() is available in functions.php head
Diffstat (limited to 'include')
-rwxr-xr-xinclude/functions.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index d6bd5fb73..3ccc09d75 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);