summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--framework/TApplication.php2
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))
{