1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-16 03:34:33 +02:00

Minor adjustment to SystemUpdaterChecks class

This commit is contained in:
Ryan Cramer
2019-07-05 11:54:23 -04:00
parent 5f705459a6
commit 7b4fe18f85

View File

@@ -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;')
'<u>$config->debug = false;</u>'
)
),
Notice::allowMarkup
Notice::allowMarkup | Notice::anonymous
);
return true;
}