Skip to content

Commit

Permalink
changes in the error dir
Browse files Browse the repository at this point in the history
  • Loading branch information
AD7six committed Mar 12, 2011
1 parent d264d0f commit afc5cd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Error/ExceptionRenderer.php
Expand Up @@ -194,7 +194,7 @@ protected function _cakeError(CakeException $error) {
public function error400($error) {
$message = $error->getMessage();
if (Configure::read('debug') == 0 && $error instanceof CakeException) {
$message = __('Not Found');
$message = __d('cake', 'Not Found');
}
$url = $this->controller->request->here();
$this->controller->response->statusCode($error->getCode());
Expand All @@ -216,7 +216,7 @@ public function error500($error) {
$code = ($error->getCode() > 500) ? $error->getCode() : 500;
$this->controller->response->statusCode($code);
$this->controller->set(array(
'name' => __('An Internal Error Has Occurred'),
'name' => __d('cake', 'An Internal Error Has Occurred'),
'message' => h($url),
'error' => $error,
));
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Error/exceptions.php
Expand Up @@ -182,7 +182,7 @@ class CakeException extends RuntimeException {
public function __construct($message, $code = 500) {
if (is_array($message)) {
$this->_attributes = $message;
$message = __($this->_messageTemplate, $message);
$message = __d('cake', $this->_messageTemplate, $message);
}
parent::__construct($message, $code);
}
Expand Down

0 comments on commit afc5cd4

Please sign in to comment.