Permalink
Browse files

Removing deprecated view var $name for error pages.

  • Loading branch information...
1 parent f6822af commit 8b6482219d4d56e454da48fe2b225549b0e801de @ADmad ADmad committed Jan 6, 2014
Showing with 4 additions and 8 deletions.
  1. +4 −8 Cake/Error/ExceptionRenderer.php
@@ -180,11 +180,10 @@ protected function _cakeError(Exception $error) {
$this->controller->response->statusCode($code);
$this->controller->set(array(
'code' => $code,
- 'name' => h($error->getMessage()),
'message' => h($error->getMessage()),
'url' => h($url),
'error' => $error,
- '_serialize' => array('code', 'name', 'message', 'url')
+ '_serialize' => array('code', 'message', 'url')
));
$this->controller->set($error->getAttributes());
$this->_outputMessage($this->template);
@@ -204,11 +203,10 @@ public function error400($error) {
$url = $this->controller->request->here();
$this->controller->response->statusCode($error->getCode());
$this->controller->set(array(
- 'name' => h($message),
'message' => h($message),
'url' => h($url),
'error' => $error,
- '_serialize' => array('name', 'message', 'url')
+ '_serialize' => array('message', 'url')
));
$this->_outputMessage('error400');
}
@@ -228,11 +226,10 @@ public function error500($error) {
$code = ($error->getCode() > 500 && $error->getCode() < 506) ? $error->getCode() : 500;
$this->controller->response->statusCode($code);
$this->controller->set(array(
- 'name' => h($message),
'message' => h($message),
'url' => h($url),
'error' => $error,
- '_serialize' => array('name', 'message', 'url')
+ '_serialize' => array('message', 'url')
));
$this->_outputMessage('error500');
}
@@ -249,11 +246,10 @@ public function pdoError(\PDOException $error) {
$this->controller->response->statusCode($code);
$this->controller->set(array(
'code' => $code,
- 'name' => h($error->getMessage()),
'message' => h($error->getMessage()),
'url' => h($url),
'error' => $error,
- '_serialize' => array('code', 'name', 'message', 'url', 'error')
+ '_serialize' => array('code', 'message', 'url', 'error')
));
$this->_outputMessage($this->template);
}

0 comments on commit 8b64822

Please sign in to comment.