summaryrefslogtreecommitdiff
path: root/framework/Web/TTemplateManager.php
diff options
context:
space:
mode:
authorxue <>2005-11-26 03:04:23 +0000
committerxue <>2005-11-26 03:04:23 +0000
commit1bc5daba808067a1db85ab8b8a401c217c9a8097 (patch)
tree5953b70ac7c377f84ea31a722ff85b5cb716a71d /framework/Web/TTemplateManager.php
parent0be2589471d01ea8471a7bdb297fea98783db12f (diff)
Diffstat (limited to 'framework/Web/TTemplateManager.php')
-rw-r--r--framework/Web/TTemplateManager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/TTemplateManager.php b/framework/Web/TTemplateManager.php
index 6b9ccfc0..1f3044a2 100644
--- a/framework/Web/TTemplateManager.php
+++ b/framework/Web/TTemplateManager.php
@@ -294,7 +294,7 @@ class TTemplate extends TComponent implements ITemplate
if($value[0]===1)
$value=$component->evaluateExpression($value[1]);
else if($value[0]===2)
- $value=$assetManager->publishFilePath($this->_contextPath.'/'.$value[1]);
+ $value=$assetManager->publishFilePath($this->_contextPath.'/'.ltrim($value[1],'/'));
else
throw new TTemplateRuntimeException('template_attribute_unbindable',get_class($component),$name);
}
@@ -342,7 +342,7 @@ class TTemplate extends TComponent implements ITemplate
$component->$setter($component->evaluateExpression($value[1]));
else if($value[0]===2)
{
- $url=$assetManager->publishFilePath($this->_contextPath.'/'.$value[1]);
+ $url=$assetManager->publishFilePath($this->_contextPath.'/'.ltrim($value[1],'/'));
$component->$setter($url);
}
else