1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 02:45:56 +00:00

test if mb_internal_encoding() is available in functions.php head

This commit is contained in:
Andrew Dolgov
2016-07-07 10:02:55 +03:00
parent eb95d1bddf
commit e6905f7f87

View File

@@ -16,7 +16,9 @@
libxml_disable_entity_loader(true); 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'); date_default_timezone_set('UTC');
if (defined('E_DEPRECATED')) { if (defined('E_DEPRECATED')) {
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED); error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);