From cc2a438199b02c78e5b2e2b71de8e56f6617eae9 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sat, 3 Jun 2023 14:10:08 +0200 Subject: Updated 15 files (automated) --- app.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'app.php') diff --git a/app.php b/app.php index 8033207..6506a4a 100644 --- a/app.php +++ b/app.php @@ -2,8 +2,10 @@ ob_start(); -require_once $_SERVER['DOCUMENT_ROOT'] . "/error.php"; -set_error_handler("ch_error"); +if (!str_starts_with($_SERVER['REQUEST_URI'], "/api")) { + require_once $_SERVER['DOCUMENT_ROOT'] . "/error.php"; + set_error_handler("ch_error"); +} $start = microtime(true); $GLOBALS["ColdHazeStart"] = microtime(true); -- cgit