Browse Source

Merge pull request #8185 from tersmitten/fatal-error-uncaught-exception-configureexception

Expand path before is_file check
Mark Story 10 years ago
parent
commit
91ab4d4dce
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Core/Configure/FileConfigTrait.php

+ 1 - 1
src/Core/Configure/FileConfigTrait.php

@@ -56,7 +56,7 @@ trait FileConfigTrait
 
         $file .= $this->_extension;
 
-        if ($checkExists && !is_file($file)) {
+        if ($checkExists && !is_file(realpath($file))) {
             throw new Exception(sprintf('Could not load configuration file: %s', $file));
         }