summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it.class b/it.class
index 64a03c1..1a54a58 100644
--- a/it.class
+++ b/it.class
@@ -295,8 +295,8 @@ static function error($p = array(), $extra = null)
}
$type = ($p['fatal'] ? "Fatal: " : "Error: ");
- $debugparams = it::replace(['^debug_' => ""], it::grep('^debug_(.*)', array_keys($GLOBALS)));
- if (!it::is_live() || array_diff($debugparams, it::match('[-\w]+', $GLOBALS['ULTRAHOME'], ['all' => true]), ["devel", "twin", "utf8check", gethostname()]))
+ $debugparams = it::match('(?:^|\.)([^-.]+)', $_SERVER['HTTP_HOST'], ['all' => true]);
+ if (!it::is_live() || array_diff($debugparams, it::match('[-\w]+', $GLOBALS['ULTRAHOME'], ['all' => true]), ["devel", "twin", gethostname()]))
$type = mb_strtolower($type);
$user = posix_getpwuid(posix_geteuid())['name'];