mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 02:04:35 +02:00
Fix issue processwire/processwire-issues#1143
This commit is contained in:
@@ -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'];
|
||||
|
Reference in New Issue
Block a user