diff --git a/lib/Cake/Console/Templates/skel/Config/core.php b/lib/Cake/Console/Templates/skel/Config/core.php index 72fb0c99c44..21a12565b68 100644 --- a/lib/Cake/Console/Templates/skel/Config/core.php +++ b/lib/Cake/Console/Templates/skel/Config/core.php @@ -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'; } diff --git a/lib/Cake/Console/Templates/skel/View/Pages/home.ctp b/lib/Cake/Console/Templates/skel/View/Pages/home.ctp index 82f76fe2a98..955053df306 100644 --- a/lib/Cake/Console/Templates/skel/View/Pages/home.ctp +++ b/lib/Cake/Console/Templates/skel/View/Pages/home.ctp @@ -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'); diff --git a/lib/Cake/Error/ExceptionRenderer.php b/lib/Cake/Error/ExceptionRenderer.php index f6d0aef64c6..bb7b4706354 100644 --- a/lib/Cake/Error/ExceptionRenderer.php +++ b/lib/Cake/Error/ExceptionRenderer.php @@ -116,7 +116,7 @@ public function __construct(Exception $exception) { } } - $isNotDebug = (Configure::read('debug') == 0); + $isNotDebug = !Configure::read('debug'); if ($isNotDebug && $method == '_cakeError') { $method = 'error400'; } diff --git a/lib/Cake/Test/test_app/View/Layouts/flash.ctp b/lib/Cake/Test/test_app/View/Layouts/flash.ctp index 755c0786309..81b70979ef5 100644 --- a/lib/Cake/Test/test_app/View/Layouts/flash.ctp +++ b/lib/Cake/Test/test_app/View/Layouts/flash.ctp @@ -22,7 +22,7 @@ <?php echo $page_title?> Html->charset(); ?> - +