Permalink
Browse files

Fix content type errors.

'serialize' should be '_serialize'.
  • Loading branch information...
1 parent 07dc558 commit 18cb9a2fc8033fdeeae019d668d4e55076a1d316 @markstory markstory committed Feb 4, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/Cake/Error/ExceptionRenderer.php
@@ -181,7 +181,7 @@ protected function _cakeError(CakeException $error) {
'url' => h($url),
'name' => $error->getMessage(),
'error' => $error,
- 'serialize' => array('code', 'url', 'name')
+ '_serialize' => array('code', 'url', 'name')
));
$this->controller->set($error->getAttributes());
$this->_outputMessage($this->template);
@@ -204,7 +204,7 @@ public function error400($error) {
'name' => $message,
'url' => h($url),
'error' => $error,
- 'serialize' => array('name', 'url')
+ '_serialize' => array('name', 'url')
));
$this->_outputMessage('error400');
}
@@ -227,7 +227,7 @@ public function error500($error) {
'name' => $message,
'message' => h($url),
'error' => $error,
- 'serialize' => array('name', 'message')
+ '_serialize' => array('name', 'message')
));
$this->_outputMessage('error500');
}
@@ -247,7 +247,7 @@ public function pdoError(PDOException $error) {
'url' => h($url),
'name' => $error->getMessage(),
'error' => $error,
- 'serialize' => array('code', 'url', 'name', 'error')
+ '_serialize' => array('code', 'url', 'name', 'error')
));
$this->_outputMessage($this->template);
}

0 comments on commit 18cb9a2

Please sign in to comment.