mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
adding check in core home.ctp to throw a 404 when debug == 0
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8060 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
f20ccc745c
commit
2849bb0a48
1 changed files with 3 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue