mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Updating old usage Configure::read()
to new Configure::read('debug')
. Closes #2070
This commit is contained in:
parent
17963e980b
commit
fa214e8716
3 changed files with 4 additions and 4 deletions
|
@ -7,12 +7,12 @@ $output .= "<h2>Sweet, \"" . Inflector::humanize($app) . "\" got Baked by CakePH
|
|||
$output .="
|
||||
<?php
|
||||
App::uses('Debugger', 'Utility');
|
||||
if (Configure::read() > 0):
|
||||
if (Configure::read('debug') > 0):
|
||||
Debugger::checkSecurityKeys();
|
||||
endif;
|
||||
?>
|
||||
<p>
|
||||
<?php
|
||||
<?php
|
||||
if (version_compare(PHP_VERSION, '5.2.6', '>=')):
|
||||
echo '<span class=\"notice success\">';
|
||||
echo __d('cake_dev', 'Your version of PHP is 5.2.6 or higher.');
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<?php echo $this->Html->charset(); ?>
|
||||
<title><?php echo $page_title; ?></title>
|
||||
|
||||
<?php if (Configure::read() == 0) { ?>
|
||||
<?php if (Configure::read('debug') == 0) { ?>
|
||||
<meta http-equiv="Refresh" content="<?php echo $pause?>;url=<?php echo $url?>"/>
|
||||
<?php } ?>
|
||||
<style><!--
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<?php echo $this->Html->charset(); ?>
|
||||
<title><?php echo $page_title; ?></title>
|
||||
|
||||
<?php if (Configure::read() == 0) { ?>
|
||||
<?php if (Configure::read('debug') == 0) { ?>
|
||||
<meta http-equiv="Refresh" content="<?php echo $pause; ?>;url=<?php echo $url; ?>"/>
|
||||
<?php } ?>
|
||||
<style><!--
|
||||
|
|
Loading…
Add table
Reference in a new issue