From cbb8fdd7c3c5de1f9a85c88e565c50a0ad1038b9 Mon Sep 17 00:00:00 2001 From: abijah Date: Sat, 12 Mar 2011 22:44:31 +0000 Subject: [PATCH] Attempt to disable debugging, only turning it on if needed. I did this change earlier, so I don't completely recall, but I believe this doesn't working, because it turns on debugging too late. git-svn-id: file:///svn-source/pmgr/branches/v0.3_php5.3_support@1008 97e9348a-65ac-dc4b-aefc-98561f571b83 --- site/app_controller.php | 4 ++-- site/config/core.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/site/app_controller.php b/site/app_controller.php index dc53904..fffc127 100644 --- a/site/app_controller.php +++ b/site/app_controller.php @@ -349,8 +349,8 @@ class AppController extends Controller { if ($this->dev() && !$this->Option->enabled('dev')) $this->redirect("/"); - if (!$this->dev()) - Configure::write('debug', '0'); + if ($this->dev()) + Configure::write('debug', 2); $this->addDefaultSideMenuLinks(); //$this->sideMenuEnable('SITE', $this->op_area, false); diff --git a/site/config/core.php b/site/config/core.php index e626837..3f6a620 100644 --- a/site/config/core.php +++ b/site/config/core.php @@ -38,7 +38,7 @@ * In production mode, flash messages redirect after a time interval. * In development mode, you need to click the flash message to continue. */ - Configure::write('debug', 2); + Configure::write('debug', 0); /** * Application wide charset encoding */