From 54d7e31492586e274c32afc3b922a5b7bd90c9ab Mon Sep 17 00:00:00 2001 From: carl <> Date: Mon, 13 Oct 2008 10:54:59 +0000 Subject: #856 - Assets PRADO_CHMOD constant missing in several places --- framework/Web/TAssetManager.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'framework/Web/TAssetManager.php') diff --git a/framework/Web/TAssetManager.php b/framework/Web/TAssetManager.php index d8028d93..0ea8fed7 100644 --- a/framework/Web/TAssetManager.php +++ b/framework/Web/TAssetManager.php @@ -4,7 +4,7 @@ * * @author Qiang Xue * @link http://www.pradosoft.com/ - * @copyright Copyright © 2005-2008 PradoSoft + * @copyright Copyright © 2005-2008 PradoSoft * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Web @@ -267,7 +267,10 @@ class TAssetManager extends TModule else if(is_file($src.DIRECTORY_SEPARATOR.$file)) { if(@filemtime($dst.DIRECTORY_SEPARATOR.$file)<@filemtime($src.DIRECTORY_SEPARATOR.$file)) + { @copy($src.DIRECTORY_SEPARATOR.$file,$dst.DIRECTORY_SEPARATOR.$file); + @chmod($dst.DIRECTORY_SEPARATOR.$file, PRADO_CHMOD); + } } else $this->copyDirectory($src.DIRECTORY_SEPARATOR.$file,$dst.DIRECTORY_SEPARATOR.$file); @@ -333,4 +336,4 @@ class TAssetManager extends TModule } -?> +?> -- cgit v1.2.3