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

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
lib/Cake
Console/Templates
default/views
skel/View/Layouts
View/Layouts

View file

@ -7,7 +7,7 @@ $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;
?>

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