Handle 404s with the correct error page, and don't log them

This commit is contained in:
Albert Santoni 2015-06-16 14:58:27 -04:00
parent 90bd0a1ab4
commit 61272cd42c
2 changed files with 5 additions and 6 deletions

View file

@ -7,7 +7,6 @@ class ErrorController extends Zend_Controller_Action {
//We cannot show that.
$this->view->layout()->disableLayout();
$this->setupCSS();
}
public function errorAction() {
@ -31,9 +30,9 @@ class ErrorController extends Zend_Controller_Action {
break;
}
} else {
$exceptions = $this->_getAllParams();
Logging::error($exceptions);
$this->error500Action();
//$exceptions = $this->_getAllParams();
//Logging::error($exceptions);
$this->error404Action();
return;
}
@ -74,7 +73,7 @@ class ErrorController extends Zend_Controller_Action {
* 404 error - route or controller
*/
public function error404Action() {
$this->_helper->viewRenderer('error-404');
$this->_helper->viewRenderer('error');
$this->getResponse()->setHttpResponseCode(404);
$this->view->message = _('Page not found.');
}