diff options
author | xue <> | 2007-02-13 21:35:26 +0000 |
---|---|---|
committer | xue <> | 2007-02-13 21:35:26 +0000 |
commit | e88f17c64dfc13f510e643033c2a0b8177cb0d70 (patch) | |
tree | 19d1c1b73f470eee585bce720ecfd5fd5b6a9517 /framework/TApplication.php | |
parent | be4ce14eed73ddfba800ff66af3839d779477ee2 (diff) |
Performance tuneup.
Diffstat (limited to 'framework/TApplication.php')
-rw-r--r-- | framework/TApplication.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php index 8101672e..21b00576 100644 --- a/framework/TApplication.php +++ b/framework/TApplication.php @@ -324,13 +324,13 @@ 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)) + if(is_file($basePath.DIRECTORY_SEPARATOR.self::CONFIG_FILE)) + $configFile=$basePath.DIRECTORY_SEPARATOR.self::CONFIG_FILE; + else if(is_file($basePath)) { $configFile=$basePath; $basePath=dirname($configFile); } - else if(is_file($basePath.DIRECTORY_SEPARATOR.self::CONFIG_FILE)) - $configFile=$basePath.DIRECTORY_SEPARATOR.self::CONFIG_FILE; else $configFile=null; |