Browse Source

Making CakePHP able to run inside a Phar file

Using realpath() for configuration files breaks the lookup path for pahr files,
we really don't need to resolve symbolic links in this specific case.
Jose Lorenzo Rodriguez 10 years ago
parent
commit
ceca09fa63
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(realpath($file))) {
+        if ($checkExists && !is_file($file)) {
             throw new Exception(sprintf('Could not load configuration file: %s', $file));
         }