mirror of
https://github.com/processwire/processwire.git
synced 2025-08-17 12:10:45 +02:00
Minor adjustment to SystemUpdaterChecks class
This commit is contained in:
@@ -378,16 +378,16 @@ class SystemUpdaterChecks extends Wire {
|
|||||||
*/
|
*/
|
||||||
public function checkDebugMode() {
|
public function checkDebugMode() {
|
||||||
if(!$this->wire('config')->debug && !$this->testAll) return true;
|
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->_('The site is in debug mode, suitable for sites in development') .
|
||||||
$this->small(
|
$this->small(
|
||||||
sprintf(
|
sprintf(
|
||||||
$this->_('If this is a live/production site, you should disable debug mode in %1$s with: %2$s'),
|
$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->location('/site/config.php'),
|
||||||
$this->code('$config->debug = false;')
|
'<u>$config->debug = false;</u>'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
Notice::allowMarkup
|
Notice::allowMarkup | Notice::anonymous
|
||||||
);
|
);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user