From 7d868c13a401d13f8777c0db5626832ac3f3a952 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sat, 5 Aug 2006 01:05:07 +0000 Subject: Fixed #318 and add chmod for each mkdir --- framework/TApplication.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'framework/TApplication.php') 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 -- cgit v1.2.3