From 18cb9a2fc8033fdeeae019d668d4e55076a1d316 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 4 Feb 2012 11:12:45 -0500 Subject: [PATCH] Fix content type errors. 'serialize' should be '_serialize'. --- lib/Cake/Error/ExceptionRenderer.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Cake/Error/ExceptionRenderer.php b/lib/Cake/Error/ExceptionRenderer.php index d98f217b8..18acb1d66 100644 --- a/lib/Cake/Error/ExceptionRenderer.php +++ b/lib/Cake/Error/ExceptionRenderer.php @@ -181,7 +181,7 @@ class ExceptionRenderer { '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 @@ class ExceptionRenderer { 'name' => $message, 'url' => h($url), 'error' => $error, - 'serialize' => array('name', 'url') + '_serialize' => array('name', 'url') )); $this->_outputMessage('error400'); } @@ -227,7 +227,7 @@ class ExceptionRenderer { 'name' => $message, 'message' => h($url), 'error' => $error, - 'serialize' => array('name', 'message') + '_serialize' => array('name', 'message') )); $this->_outputMessage('error500'); } @@ -247,7 +247,7 @@ class ExceptionRenderer { 'url' => h($url), 'name' => $error->getMessage(), 'error' => $error, - 'serialize' => array('code', 'url', 'name', 'error') + '_serialize' => array('code', 'url', 'name', 'error') )); $this->_outputMessage($this->template); }