mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-04 18:42:40 +00:00
using the domain cake_error for messages not intended for end users
This commit is contained in:
parent
2fc8d88916
commit
9b092f4bf2
2 changed files with 7 additions and 7 deletions
|
@ -27,7 +27,7 @@
|
|||
* you to create nested arrays structures in an ini config file. For example:
|
||||
*
|
||||
* `db.password = secret` would turn into `array('db' => array('password' => 'secret'))`
|
||||
*
|
||||
*
|
||||
* You can nest properties as deeply as needed using .'s. IniReader also manipulates
|
||||
* how the special ini values of 'yes', 'no', 'on', 'off', 'null' are handled.
|
||||
* These values will be converted to their boolean equivalents.
|
||||
|
@ -74,7 +74,7 @@ class IniReader implements ConfigReaderInterface {
|
|||
if (!file_exists($filename)) {
|
||||
$filename .= '.ini';
|
||||
if (!file_exists($filename)) {
|
||||
throw new ConfigureException(__d('cake', 'Could not load configuration files: %s or %s', substr($filename, 0, -4), $filename));
|
||||
throw new ConfigureException(__d('cake_error', 'Could not load configuration files: %s or %s', substr($filename, 0, -4), $filename));
|
||||
}
|
||||
}
|
||||
$contents = parse_ini_file($filename, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue