From 8c102f8d5428987dddc5f8b0cf9114789bd4a9b6 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 21 Apr 2022 13:38:30 +0200 Subject: support late setting of debug_aslive in code --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it.class b/it.class index e968575..7ea6862 100644 --- a/it.class +++ b/it.class @@ -386,7 +386,7 @@ static function is_devel() */ static function servertype($pattern) { - return it::match($pattern, $GLOBALS['ULTRASERVERTYPE'] ?: 'live'); + return it::match($pattern, $GLOBALS['debug_aslive'] ? 'live' : ($GLOBALS['debug_asdevel'] ? 'devel' : ($GLOBALS['ULTRASERVERTYPE'] ?: 'live'))); } -- cgit v1.2.3