Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Oct 26, 2012
1 parent f4f4aa4 commit 5324a8c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/Cake/Console/Templates/skel/Config/core.php
Expand Up @@ -306,7 +306,7 @@

// In development mode, caches should expire quickly.
$duration = '+999 days';
if (Configure::read('debug') >= 1) {
if (Configure::read('debug') > 0) {
$duration = '+10 seconds';
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Console/Templates/skel/View/Pages/home.ctp
Expand Up @@ -15,7 +15,7 @@
* @since CakePHP(tm) v 0.10.0.1076
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
if (Configure::read('debug') == 0):
if (!Configure::read('debug')):
throw new NotFoundException();
endif;
App::uses('Debugger', 'Utility');
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Error/ExceptionRenderer.php
Expand Up @@ -116,7 +116,7 @@ public function __construct(Exception $exception) {
}
}

$isNotDebug = (Configure::read('debug') == 0);
$isNotDebug = !Configure::read('debug');
if ($isNotDebug && $method == '_cakeError') {
$method = 'error400';
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/test_app/View/Layouts/flash.ctp
Expand Up @@ -22,7 +22,7 @@
<title><?php echo $page_title?></title>
<?php echo $this->Html->charset(); ?>

<?php if (Configure::read('debug') == 0) { ?>
<?php if (!Configure::read('debug')) { ?>
<meta http-equiv="Refresh" content="<?php echo $pause?>;url=<?php echo $url?>"/>
<?php } ?>
<style><!--
Expand Down

0 comments on commit 5324a8c

Please sign in to comment.