Skip to content

Commit

Permalink
Updating old usage Configure::read() to new `Configure::read('debug…
Browse files Browse the repository at this point in the history
…')`. Closes cakephp#2070
  • Loading branch information
ADmad committed Oct 6, 2011
1 parent 17963e9 commit fa214e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Console/Templates/default/views/home.ctp
Expand Up @@ -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.');
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Console/Templates/skel/View/Layouts/flash.ctp
Expand Up @@ -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><!--
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/View/Layouts/flash.ctp
Expand Up @@ -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><!--
Expand Down

0 comments on commit fa214e8

Please sign in to comment.