From 741c2b05811e7f3bf3b17c9f55957336f791c08c Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 18 May 2021 15:25:38 +0200 Subject: call more attention to page-killing problems --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it.class b/it.class index f384dd2..7c3d556 100644 --- a/it.class +++ b/it.class @@ -296,7 +296,7 @@ static function error($p = array(), $extra = null) $body = it::replace(array('(pw|passw|password\d*|secret)(\' => |\] => |=)[^&\s]*' => '$1$2********'), $body, array('utf8' => false)); } - $type = ($p['fatal'] ? "Fatal: " : "Error: "); + $type = ($p['fatal'] ? (it::is_live() ? "FATAL: " : "Fatal: ") : "Error: "); $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); -- cgit v1.2.3