diff options
author | xue <> | 2007-08-06 18:58:55 +0000 |
---|---|---|
committer | xue <> | 2007-08-06 18:58:55 +0000 |
commit | edfdfdd1cbf6d597551d4128e7e11d6d92bcdf95 (patch) | |
tree | 9a39721593e768419fb58c8b21e88ff4748bb0ae /framework/Web/UI/TTemplateManager.php | |
parent | 1031b56f982f973f85cb3e1528f7bcbba662778f (diff) |
fixed #685
Diffstat (limited to 'framework/Web/UI/TTemplateManager.php')
-rw-r--r-- | framework/Web/UI/TTemplateManager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php index 6fe56f4d..34d66b47 100644 --- a/framework/Web/UI/TTemplateManager.php +++ b/framework/Web/UI/TTemplateManager.php @@ -485,7 +485,7 @@ class TTemplate extends TApplicationComponent implements ITemplate break;
case self::CONFIG_ASSET: // asset URL
$setter='set'.$name;
- $url=$this->publishFilePath($this->_contextPath.'/'.$value[1]);
+ $url=$this->publishFilePath($this->_contextPath.DIRECTORY_SEPARATOR.$value[1]);
$component->$setter($url);
break;
case self::CONFIG_PARAMETER: // application parameter
@@ -533,7 +533,7 @@ class TTemplate extends TApplicationComponent implements ITemplate $component->setSubProperty($name,$value[1]);
break;
case self::CONFIG_ASSET: // asset URL
- $url=$this->publishFilePath($this->_contextPath.'/'.$value[1]);
+ $url=$this->publishFilePath($this->_contextPath.DIRECTORY_SEPARATOR.$value[1]);
$component->setSubProperty($name,$url);
break;
case self::CONFIG_PARAMETER: // application parameter
|