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:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user