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