aboutsummaryrefslogtreecommitdiff
path: root/lib/Debug.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Debug.php')
-rw-r--r--lib/Debug.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Debug.php b/lib/Debug.php
index 0b05a20d..316d5595 100644
--- a/lib/Debug.php
+++ b/lib/Debug.php
@@ -64,8 +64,8 @@ class Debug
{
static $firstCall = true; // Initialized on first call
- if ($firstCall && file_exists(PATH_ROOT . 'DEBUG')) {
- $debug_whitelist = trim(file_get_contents(PATH_ROOT . 'DEBUG'));
+ if ($firstCall && file_exists(__DIR__ . '/../DEBUG')) {
+ $debug_whitelist = trim(file_get_contents(__DIR__ . '/../DEBUG'));
self::$enabled = empty($debug_whitelist) || in_array(
$_SERVER['REMOTE_ADDR'],