mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Expand path before is_file check
To allow symlinks to config files
This commit is contained in:
parent
8cadb553d7
commit
5c8c22cf19
2 changed files with 2 additions and 2 deletions
|
@ -102,7 +102,7 @@ class IniReader implements ConfigReaderInterface {
|
|||
}
|
||||
|
||||
$file = $this->_getFilePath($key);
|
||||
if (!is_file($file)) {
|
||||
if (!is_file(realpath($file))) {
|
||||
throw new ConfigureException(__d('cake_dev', 'Could not load configuration file: %s', $file));
|
||||
}
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ class PhpReader implements ConfigReaderInterface {
|
|||
}
|
||||
|
||||
$file = $this->_getFilePath($key);
|
||||
if (!is_file($file)) {
|
||||
if (!is_file(realpath($file))) {
|
||||
throw new ConfigureException(__d('cake_dev', 'Could not load configuration file: %s', $file));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue