Skip to content

Commit

Permalink
Fix content type errors.
Browse files Browse the repository at this point in the history
'serialize' should be '_serialize'.
  • Loading branch information
markstory committed Feb 4, 2012
1 parent 07dc558 commit 18cb9a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Cake/Error/ExceptionRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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');
}
Expand All @@ -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');
}
Expand All @@ -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);
}
Expand Down

0 comments on commit 18cb9a2

Please sign in to comment.