mirror of
https://github.com/processwire/processwire.git
synced 2025-08-15 11:14:12 +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
|
// otherwise $why will NOT be populated with anything
|
||||||
if($config->debug) {
|
if($config->debug) {
|
||||||
$why = $this->labels['debug-mode'] . " (\$config->debug = true; => /site/config.php).";
|
$why = $this->labels['debug-mode'] . " (\$config->debug = true; => /site/config.php).";
|
||||||
} else if(!$useHTML) {
|
} else if($config->cli) {
|
||||||
$why = $this->labels['cli-mode'];
|
$why = $this->labels['cli-mode'];
|
||||||
} else if($user && $user->isSuperuser()) {
|
} else if($user && $user->isSuperuser()) {
|
||||||
$why = $this->labels['you-superuser'];
|
$why = $this->labels['you-superuser'];
|
||||||
|
Reference in New Issue
Block a user