From 9337aae8b1c87fad34884dacd5cd79d9591c60db Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sat, 18 Nov 2023 11:34:36 +0100 Subject: Updated 39 files, added 86 files, deleted 40 files and renamed 2 files (automated) --- app.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'app.php') diff --git a/app.php b/app.php index edf2439..638d8c4 100644 --- a/app.php +++ b/app.php @@ -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"; -- cgit