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
This commit is contained in:
abijah
2011-03-12 22:44:31 +00:00
parent e8a62f98fc
commit cbb8fdd7c3
2 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -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
*/