Skip to content

Commit

Permalink
Merge pull request #8487 from cakephp/fix-phar-files
Browse files Browse the repository at this point in the history
Making CakePHP able to run inside a Phar file
  • Loading branch information
lorenzo committed Mar 19, 2016
2 parents 4502edc + bb54a0c commit 09bb01d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Configure/FileConfigTrait.php
Expand Up @@ -56,7 +56,7 @@ protected function _getFilePath($key, $checkExists = false)

$file .= $this->_extension;

if ($checkExists && !is_file(realpath($file))) {
if ($checkExists && !is_file($file) && !is_file(realpath($file))) {
throw new Exception(sprintf('Could not load configuration file: %s', $file));
}

Expand Down

0 comments on commit 09bb01d

Please sign in to comment.