diff --git a/app/View/Errors/error400.ctp b/app/View/Errors/error400.ctp index 81bc61bc1..4c3850b28 100644 --- a/app/View/Errors/error400.ctp +++ b/app/View/Errors/error400.ctp @@ -16,7 +16,7 @@ * @license http://www.opensource.org/licenses/mit-license.php MIT License */ ?> -

+

: -

+

: diff --git a/lib/Cake/Console/Templates/skel/View/Errors/error400.ctp b/lib/Cake/Console/Templates/skel/View/Errors/error400.ctp index 32fa9fcfb..2600be9bd 100644 --- a/lib/Cake/Console/Templates/skel/View/Errors/error400.ctp +++ b/lib/Cake/Console/Templates/skel/View/Errors/error400.ctp @@ -7,7 +7,7 @@ * @since CakePHP(tm) v 0.10.0.1076 */ ?> -

+

: -

+

: diff --git a/lib/Cake/Error/ExceptionRenderer.php b/lib/Cake/Error/ExceptionRenderer.php index e6b858057..e74db1e60 100644 --- a/lib/Cake/Error/ExceptionRenderer.php +++ b/lib/Cake/Error/ExceptionRenderer.php @@ -188,10 +188,11 @@ class ExceptionRenderer { $this->controller->response->statusCode($code); $this->controller->set(array( 'code' => $code, + 'mame' => h($error->getMessage()), + 'message' => h($error->getMessage()), 'url' => h($url), - 'name' => h($error->getMessage()), 'error' => $error, - '_serialize' => array('code', 'url', 'name') + '_serialize' => array('code', 'name', 'message', 'url') )); $this->controller->set($error->getAttributes()); $this->_outputMessage($this->template); @@ -212,9 +213,10 @@ class ExceptionRenderer { $this->controller->response->statusCode($error->getCode()); $this->controller->set(array( 'name' => h($message), + 'message' => h($message), 'url' => h($url), 'error' => $error, - '_serialize' => array('name', 'url') + '_serialize' => array('name', 'message', 'url') )); $this->_outputMessage('error400'); } @@ -235,9 +237,10 @@ class ExceptionRenderer { $this->controller->response->statusCode($code); $this->controller->set(array( 'name' => h($message), - 'message' => h($url), + 'message' => h($message), + 'url' => h($url), 'error' => $error, - '_serialize' => array('name', 'message') + '_serialize' => array('name', 'message', 'url') )); $this->_outputMessage('error500'); } @@ -254,10 +257,11 @@ class ExceptionRenderer { $this->controller->response->statusCode($code); $this->controller->set(array( 'code' => $code, - 'url' => h($url), 'name' => h($error->getMessage()), + 'message' => h($error->getMessage()), + 'url' => h($url), 'error' => $error, - '_serialize' => array('code', 'url', 'name', 'error') + '_serialize' => array('code', 'name', 'message', 'url', 'error') )); $this->_outputMessage($this->template); } diff --git a/lib/Cake/Test/test_app/View/Errors/error400.ctp b/lib/Cake/Test/test_app/View/Errors/error400.ctp index aa817e75c..f3692628a 100644 --- a/lib/Cake/Test/test_app/View/Errors/error400.ctp +++ b/lib/Cake/Test/test_app/View/Errors/error400.ctp @@ -1,4 +1,4 @@ -

+

: +

: diff --git a/lib/Cake/View/Errors/pdo_error.ctp b/lib/Cake/View/Errors/pdo_error.ctp index 56361732e..1efdb4b7c 100644 --- a/lib/Cake/View/Errors/pdo_error.ctp +++ b/lib/Cake/View/Errors/pdo_error.ctp @@ -19,7 +19,7 @@

: - +

queryString)) : ?>