From 2849bb0a48a01fc42f53c33cd5a9282c9315a8a9 Mon Sep 17 00:00:00 2001 From: gwoo Date: Wed, 25 Feb 2009 19:50:30 +0000 Subject: [PATCH] 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 --- cake/libs/view/pages/home.ctp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cake/libs/view/pages/home.ctp b/cake/libs/view/pages/home.ctp index 58390a781..f0e3d9c63 100644 --- a/cake/libs/view/pages/home.ctp +++ b/cake/libs/view/pages/home.ctp @@ -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; ?>