From 20cdbea7a80dcb62f1d12dd588035d673c6d204a Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Wed, 15 Apr 2020 15:58:29 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#1143 --- wire/core/WireShutdown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/core/WireShutdown.php b/wire/core/WireShutdown.php index c576c7eb..230a6241 100644 --- a/wire/core/WireShutdown.php +++ b/wire/core/WireShutdown.php @@ -475,7 +475,7 @@ class WireShutdown extends Wire { // otherwise $why will NOT be populated with anything if($config->debug) { $why = $this->labels['debug-mode'] . " (\$config->debug = true; => /site/config.php)."; - } else if(!$useHTML) { + } else if($config->cli) { $why = $this->labels['cli-mode']; } else if($user && $user->isSuperuser()) { $why = $this->labels['you-superuser'];