summaryrefslogtreecommitdiff
path: root/app.php
diff options
context:
space:
mode:
Diffstat (limited to 'app.php')
-rw-r--r--app.php5
1 files changed, 2 insertions, 3 deletions
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";