--- newscoop-4.0.3/application/controllers/ErrorController.php 2012-10-25 10:21:03.000000000 +0200 +++ newscoop-4.0.4/application/controllers/ErrorController.php 2013-01-21 14:11:30.547845488 +0100 @@ -74,13 +74,15 @@ $log->log(sprintf("%s (Params: %s)", $this->view->message, json_encode($request->getParams())), $priority, $errors->exception); } - // conditionally display exceptions - if ($this->getInvokeArg('displayExceptions') == true) { - $this->view->exception = $errors->exception; - } + if (defined('APPLICATION_ENV') && APPLICATION_ENV == 'development') { + // conditionally display exceptions + if ($this->getInvokeArg('displayExceptions') == true) { + $this->view->exception = $errors->exception; + } - $this->view->request = $errors->request; - $this->view->errors = $errors; + $this->view->request = $errors->request; + $this->view->errors = $errors; + } } public function getLog() --- newscoop-4.0.3/application/views/scripts/error_error.tpl 2012-10-25 10:21:03.000000000 +0200 +++ newscoop-4.0.4/application/views/scripts/error_error.tpl 2013-01-21 14:11:43.279908616 +0100 @@ -5,8 +5,4 @@
{{ var_dump($error) }}
-{{ /foreach }}
-
{{/block}}