diff options
Diffstat (limited to 'app.php')
-rw-r--r-- | app.php | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -2,8 +2,7 @@ ob_start(); -if (false) { -//if (!str_starts_with($_SERVER['REQUEST_URI'], "/api")) { +if (!str_starts_with($_SERVER['REQUEST_URI'], "/api")) { require_once $_SERVER['DOCUMENT_ROOT'] . "/error.php"; set_error_handler("ch_error"); } @@ -18,7 +17,7 @@ if (!function_exists("formatPonypush")) { } } -require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/language.inc"; global $lang; global $pages; +$lang = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/i18n/en.json"), true); global $lang; global $pages; require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/session.inc"; global $isLoggedIn; global $isLowerLoggedIn; require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/functions.inc"; |