summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2022-04-21 13:38:30 +0200
committerUrban Müller2022-04-21 13:38:30 +0200
commit8c102f8d5428987dddc5f8b0cf9114789bd4a9b6 (patch)
tree9c1ca40da16c8135611f2b5fd069cb938b447fa7
parent5e48322d05ec2dfa970b69fef49167f8e18b8077 (diff)
downloaditools-8c102f8d5428987dddc5f8b0cf9114789bd4a9b6.tar.gz
itools-8c102f8d5428987dddc5f8b0cf9114789bd4a9b6.tar.bz2
itools-8c102f8d5428987dddc5f8b0cf9114789bd4a9b6.zip
support late setting of debug_aslive in code
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
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')));
}