From 53c401bf07d89fad12c69f482d48126661efab88 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 18 Jan 2007 03:47:22 +0000 Subject: minor fixes. --- framework/TApplication.php | 2 +- framework/Web/TAssetManager.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'framework') diff --git a/framework/TApplication.php b/framework/TApplication.php index 8cf97de7..31efd8a0 100644 --- a/framework/TApplication.php +++ b/framework/TApplication.php @@ -314,7 +314,7 @@ class TApplication extends TComponent { if(@mkdir($this->_runtimePath)===false) throw new TConfigurationException('application_runtimepath_failed',$this->_runtimePath); - chmod($this->_runtimePath, 0777); //make it deletable + chmod($this->_runtimePath, PRADO_CHMOD); //make it deletable } } } diff --git a/framework/Web/TAssetManager.php b/framework/Web/TAssetManager.php index fa43b7d7..41c3216a 100644 --- a/framework/Web/TAssetManager.php +++ b/framework/Web/TAssetManager.php @@ -233,7 +233,7 @@ class TAssetManager extends TModule if(!is_dir($dst)) { @mkdir($dst); - @chmod($dst, 0777); + @chmod($dst, PRADO_CHMOD); } $dstFile=$dst.'/'.basename($src); if(@filemtime($dstFile)<@filemtime($src)) @@ -256,7 +256,7 @@ class TAssetManager extends TModule if(!is_dir($dst)) { @mkdir($dst); - @chmod($dst, 0777); + @chmod($dst, PRADO_CHMOD); } $folder=@opendir($src); while($file=@readdir($folder)) -- cgit v1.2.3