summaryrefslogtreecommitdiff
path: root/app.php
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-06-03 14:10:08 +0200
committerRaindropsSys <contact@minteck.org>2023-06-03 14:10:08 +0200
commitcc2a438199b02c78e5b2e2b71de8e56f6617eae9 (patch)
tree7ddbeba11a3c16ada13663e7b3bba9bef0f96ca6 /app.php
parent48afc99d05c7bcd54231f340635f5102a03fbda4 (diff)
downloadpluralconnect-cc2a438199b02c78e5b2e2b71de8e56f6617eae9.tar.gz
pluralconnect-cc2a438199b02c78e5b2e2b71de8e56f6617eae9.tar.bz2
pluralconnect-cc2a438199b02c78e5b2e2b71de8e56f6617eae9.zip
Updated 15 files (automated)
Diffstat (limited to 'app.php')
-rw-r--r--app.php6
1 files changed, 4 insertions, 2 deletions
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);