summaryrefslogtreecommitdiff
path: root/framework/Web/TAssetManager.php
diff options
context:
space:
mode:
authorwei <>2006-08-05 01:05:07 +0000
committerwei <>2006-08-05 01:05:07 +0000
commit7d868c13a401d13f8777c0db5626832ac3f3a952 (patch)
treea538d61f69fb59b2d59df67b14065cd08864f488 /framework/Web/TAssetManager.php
parent93c4193f4a3c315c7785bf5f9f522c955ef6fce7 (diff)
Fixed #318 and add chmod for each mkdir
Diffstat (limited to 'framework/Web/TAssetManager.php')
-rw-r--r--framework/Web/TAssetManager.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/Web/TAssetManager.php b/framework/Web/TAssetManager.php
index 94c84ae7..5e861cc2 100644
--- a/framework/Web/TAssetManager.php
+++ b/framework/Web/TAssetManager.php
@@ -199,7 +199,10 @@ class TAssetManager extends TModule
protected function copyFile($src,$dst)
{
if(!is_dir($dst))
+ {
@mkdir($dst);
+ @chmod($dst, 0777);
+ }
$dstFile=$dst.'/'.basename($src);
if(@filemtime($dstFile)<@filemtime($src))
{