X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Fcontrollers%2FErrorController.php;h=28f321bf563c2c317440d327a21d3ad89f5ba91d;hb=69cbaf628f5576754d4553c021315188e22d24af;hp=db283ab86d48844a3983f55316c0c0a0a0ccd695;hpb=190fd621df4920c56a422c03663874cddaa67d64;p=syj.git diff --git a/application/controllers/ErrorController.php b/application/controllers/ErrorController.php index db283ab..28f321b 100644 --- a/application/controllers/ErrorController.php +++ b/application/controllers/ErrorController.php @@ -6,18 +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->view->jslocales = null; - $this->view->headScript()->exchangeArray(array()); - $this->view->headLink()->exchangeArray(array()); - $this->view->headTitle()->exchangeArray(array()); - $this->view->headStyle()->exchangeArray(array()); - - $this->view->headLink()->appendStylesheet('css/generic.css'); - $this->view->headLink()->appendStylesheet('css/error.css'); + $this->_helper->SyjReset->resetPlaceHolders(); + $this->view->headLink()->appendStylesheet('css/generic.css', 'all'); + $this->view->headLink()->appendStylesheet('css/error.css', 'all'); } public function errorAction() { @@ -47,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())); }