mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-04 18:42:40 +00:00
consolidate cake_error and cake_developer to simply "cake_dev"
it's a lot easier for adding new translations to think: is it for the end user? use 'cake' as the domain is it for the developer use 'cake_dev' as the domain is it for the console use 'cake_console' as the domain also neatly avoids the "this message is an error, and it's in cake_developer, why?" - question (because cake_error was intended for anything which is used in trigger_error/exceptions, not a variable named $error
This commit is contained in:
parent
7fa52710f3
commit
32df3156a7
75 changed files with 331 additions and 331 deletions
|
@ -184,7 +184,7 @@ class CakeException extends RuntimeException {
|
|||
public function __construct($message, $code = 500) {
|
||||
if (is_array($message)) {
|
||||
$this->_attributes = $message;
|
||||
$message = __d('cake_error', $this->_messageTemplate, $message);
|
||||
$message = __d('cake_dev', $this->_messageTemplate, $message);
|
||||
}
|
||||
parent::__construct($message, $code);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue