mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Translation fix
Fixes #2340 Signed-off-by: mark_story <mark@mark-story.com>
This commit is contained in:
parent
ba81754a1a
commit
f9d12563a3
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ class ExceptionRenderer {
|
||||||
public function error500($error) {
|
public function error500($error) {
|
||||||
$message = $error->getMessage();
|
$message = $error->getMessage();
|
||||||
if (Configure::read('debug') == 0) {
|
if (Configure::read('debug') == 0) {
|
||||||
$message = __d('cake', 'An Internal Error Has Occurred');
|
$message = __d('cake', 'An Internal Error Has Occurred.');
|
||||||
}
|
}
|
||||||
$url = $this->controller->request->here();
|
$url = $this->controller->request->here();
|
||||||
$code = ($error->getCode() > 500 && $error->getCode() < 506) ? $error->getCode() : 500;
|
$code = ($error->getCode() > 500 && $error->getCode() < 506) ? $error->getCode() : 500;
|
||||||
|
|
Loading…
Reference in a new issue