Skip to content

Commit

Permalink
adding check in core home.ctp to throw a 404 when debug == 0
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8060 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information
gwoo committed Feb 25, 2009
1 parent f20ccc7 commit 2849bb0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cake/libs/view/pages/home.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
* @lastmodified $Date$
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
if (Configure::read() == 0):
$this->cakeError('error404');
endif;
?>
<h2><?php echo sprintf(__('Release Notes for CakePHP %s.', true), Configure::version()); ?></h2>
<a href="https://trac.cakephp.org/wiki/changelog/1.2.x.x"><?php __('Read the changelog'); ?> </a>
Expand Down

0 comments on commit 2849bb0

Please sign in to comment.