Updating old usage Configure::read() to new Configure::read('debug'). Closes #2070

This commit is contained in:
ADmad 2011-10-06 17:00:34 +05:30
parent 17963e980b
commit fa214e8716
3 changed files with 4 additions and 4 deletions

View file

@ -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.');

View file

@ -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><!--

View file

@ -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><!--