X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Fcontrollers%2FErrorController.php;h=28f321bf563c2c317440d327a21d3ad89f5ba91d;hb=bfe63b61894a100bd3d83ac86593a8d767b94920;hp=0207587bf89633f4ab6cf0461cf33091b91d6eff;hpb=f033354528986455d250e2ddbf43374aacede286;p=syj.git diff --git a/application/controllers/ErrorController.php b/application/controllers/ErrorController.php index 0207587..28f321b 100644 --- a/application/controllers/ErrorController.php +++ b/application/controllers/ErrorController.php @@ -10,8 +10,8 @@ class ErrorController extends Zend_Controller_Action 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() { @@ -41,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())); }