Expand path before is_file check

To allow symlinks to config files
This commit is contained in:
Mischa ter Smitten 2016-02-05 11:11:28 +01:00
parent 8cadb553d7
commit 5c8c22cf19
2 changed files with 2 additions and 2 deletions

View file

@ -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));
}

View 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));
}