diff options
author | Andrew Dolgov <[email protected]> | 2016-07-07 10:02:55 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2016-07-07 10:02:55 +0300 |
commit | e6905f7f875db71c934693732b3e03f852268e2c (patch) | |
tree | 0fe45994994b3726feb2d82c5fa3718e9a1e6e3b /include/functions.php | |
parent | eb95d1bddf12c6bd11d2d3af5a524e1216ea2264 (diff) |
test if mb_internal_encoding() is available in functions.php head
Diffstat (limited to 'include/functions.php')
-rwxr-xr-x | include/functions.php | 4 |
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); |