X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Fcontrollers%2FErrorController.php;h=28f321bf563c2c317440d327a21d3ad89f5ba91d;hb=9d450c0eb88cc1cc19db9ad4334bc1fc68f5ee21;hp=7e0301539129575891f1c6ae7c3e1e26c3d82b7a;hpb=26afcb880ff75743abcb627ecf516b6c51a36d08;p=syj.git diff --git a/application/controllers/ErrorController.php b/application/controllers/ErrorController.php index 7e03015..28f321b 100644 --- a/application/controllers/ErrorController.php +++ b/application/controllers/ErrorController.php @@ -6,13 +6,12 @@ class ErrorController extends Zend_Controller_Action { protected function httpError($code) { $this->getResponse()->setHttpResponseCode($code); - $this->view->message = Zend_Http_Response::responseCodeAsText($code); } public function init() { $this->_helper->SyjReset->resetPlaceHolders(); - $this->view->headLink()->appendStylesheet('css/generic.css'); - $this->view->headLink()->appendStylesheet('css/error.css'); + $this->view->headLink()->appendStylesheet('css/generic.css', 'all'); + $this->view->headLink()->appendStylesheet('css/error.css', 'all'); } public function errorAction() { @@ -42,7 +41,7 @@ class ErrorController extends Zend_Controller_Action $log->crit($this->view->message, $error->exception); } - if ($error_code != 404 and $error_code != 410 and $error->request->isXmlHttpRequest()) { + if ($error_code == 400 and $error->request->isXmlHttpRequest()) { return $this->_helper->json(array('message' => $error->exception->getMessage())); }