From 325afde0ae289abafb8d43a0543f1bbf6cde79a9 Mon Sep 17 00:00:00 2001 From: ctrlaltca <> Date: Thu, 5 Jul 2012 08:38:39 +0000 Subject: fix #412 --- framework/TApplication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/TApplication.php') 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)) { -- cgit v1.2.3