diff options
author | wei <> | 2006-08-05 01:05:07 +0000 |
---|---|---|
committer | wei <> | 2006-08-05 01:05:07 +0000 |
commit | 7d868c13a401d13f8777c0db5626832ac3f3a952 (patch) | |
tree | a538d61f69fb59b2d59df67b14065cd08864f488 /framework/TApplication.php | |
parent | 93c4193f4a3c315c7785bf5f9f522c955ef6fce7 (diff) |
Fixed #318 and add chmod for each mkdir
Diffstat (limited to 'framework/TApplication.php')
-rw-r--r-- | framework/TApplication.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php index aa46f39d..375df885 100644 --- a/framework/TApplication.php +++ b/framework/TApplication.php @@ -309,8 +309,11 @@ class TApplication extends TComponent $subdir=basename($this->_configFile); $this->_runtimePath.='/'.$subdir; if(!is_dir($this->_runtimePath)) + { if(@mkdir($this->_runtimePath)===false) throw new TConfigurationException('application_runtimepath_failed',$this->_runtimePath); + chmod($this->_runtimePath, 0777); //make it deletable + } } } else |