diff options
author | ctrlaltca <> | 2012-07-05 08:38:39 +0000 |
---|---|---|
committer | ctrlaltca <> | 2012-07-05 08:38:39 +0000 |
commit | 325afde0ae289abafb8d43a0543f1bbf6cde79a9 (patch) | |
tree | aab30f0d6705e2119aaa393d6ccd3170778b01f6 /framework | |
parent | 511b94d7bce011a09522fe591dc931a41f69618e (diff) |
fix #412
Diffstat (limited to 'framework')
-rw-r--r-- | framework/TApplication.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php index c147fbd6..a23863b9 100644 --- a/framework/TApplication.php +++ b/framework/TApplication.php @@ -349,7 +349,7 @@ class TApplication extends TComponent // determine configuration path and file if(empty($basePath) || ($basePath=realpath($basePath))===false) throw new TConfigurationException('application_basepath_invalid',$basePath); - if(is_file($basePath.DIRECTORY_SEPARATOR.$this->getConfigurationFileName())) + if(is_dir($basePath) && is_file($basePath.DIRECTORY_SEPARATOR.$this->getConfigurationFileName())) $configFile=$basePath.DIRECTORY_SEPARATOR.$this->getConfigurationFileName(); else if(is_file($basePath)) { |