mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Don't translate errors
This commit is contained in:
parent
3b01c5f842
commit
842cdf58f8
1 changed files with 2 additions and 2 deletions
|
@ -158,11 +158,11 @@ class JsonView extends View {
|
|||
if (function_exists('json_last_error_msg')) {
|
||||
$error = json_last_error_msg();
|
||||
} else {
|
||||
$error = __('JSON encoding failed: Error code %s', json_last_error());
|
||||
$error = sprintf('JSON encoding failed: Error code %s', json_last_error());
|
||||
}
|
||||
throw new CakeException($error);
|
||||
} elseif ($json === false) {
|
||||
throw new CakeException(__('Failed to parse JSON'));
|
||||
throw new CakeException('Failed to parse JSON');
|
||||
}
|
||||
return $json;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue