From 7b4fe18f851ddd08f001e0d024fd113d673b64ff Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 5 Jul 2019 11:54:23 -0400 Subject: [PATCH] Minor adjustment to SystemUpdaterChecks class --- wire/modules/System/SystemUpdater/SystemUpdaterChecks.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wire/modules/System/SystemUpdater/SystemUpdaterChecks.php b/wire/modules/System/SystemUpdater/SystemUpdaterChecks.php index d7a9f577..2f6f29df 100644 --- a/wire/modules/System/SystemUpdater/SystemUpdaterChecks.php +++ b/wire/modules/System/SystemUpdater/SystemUpdaterChecks.php @@ -378,16 +378,16 @@ class SystemUpdaterChecks extends Wire { */ public function checkDebugMode() { if(!$this->wire('config')->debug && !$this->testAll) return true; - if($this->showNotices) $this->warning( + if($this->showNotices) $this->message('icon-bug ' . $this->_('The site is in debug mode, suitable for sites in development') . $this->small( sprintf( $this->_('If this is a live/production site, you should disable debug mode in %1$s with: %2$s'), $this->location('/site/config.php'), - $this->code('$config->debug = false;') + '$config->debug = false;' ) ), - Notice::allowMarkup + Notice::allowMarkup | Notice::anonymous ); return true; }