Skip to content
This repository
Browse code

cleanup

  • Loading branch information...
commit 5324a8ca9c4484ffef95727de8dda58c8e4715d9 1 parent f4f4aa4
Mark authored October 27, 2012
2  lib/Cake/Console/Templates/skel/Config/core.php
@@ -306,7 +306,7 @@
306 306
 
307 307
 // In development mode, caches should expire quickly.
308 308
 $duration = '+999 days';
309  
-if (Configure::read('debug') >= 1) {
  309
+if (Configure::read('debug') > 0) {
310 310
 	$duration = '+10 seconds';
311 311
 }
312 312
 
2  lib/Cake/Console/Templates/skel/View/Pages/home.ctp
@@ -15,7 +15,7 @@
15 15
  * @since         CakePHP(tm) v 0.10.0.1076
16 16
  * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
17 17
  */
18  
-if (Configure::read('debug') == 0):
  18
+if (!Configure::read('debug')):
19 19
 	throw new NotFoundException();
20 20
 endif;
21 21
 App::uses('Debugger', 'Utility');
2  lib/Cake/Error/ExceptionRenderer.php
@@ -116,7 +116,7 @@ public function __construct(Exception $exception) {
116 116
 			}
117 117
 		}
118 118
 
119  
-		$isNotDebug = (Configure::read('debug') == 0);
  119
+		$isNotDebug = !Configure::read('debug');
120 120
 		if ($isNotDebug && $method == '_cakeError') {
121 121
 			$method = 'error400';
122 122
 		}
2  lib/Cake/Test/test_app/View/Layouts/flash.ctp
@@ -22,7 +22,7 @@
22 22
 <title><?php echo $page_title?></title>
23 23
 <?php echo $this->Html->charset(); ?>
24 24
 
25  
-<?php if (Configure::read('debug') == 0) { ?>
  25
+<?php if (!Configure::read('debug')) { ?>
26 26
 <meta http-equiv="Refresh" content="<?php echo $pause?>;url=<?php echo $url?>"/>
27 27
 <?php } ?>
28 28
 <style><!--

0 notes on commit 5324a8c

Please sign in to comment.
Something went wrong with that request. Please try again.