summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TTemplateManager.php
diff options
context:
space:
mode:
authorxue <>2006-03-09 02:18:49 +0000
committerxue <>2006-03-09 02:18:49 +0000
commit36b52fa8ecbcd3b1559a1f49cbfdb4bf413e2773 (patch)
tree4209096a817a434f34710ee1e7a56f6c04067933 /framework/Web/UI/TTemplateManager.php
parentdfc35208915df9d4c054113a6a3fba86d72c4db1 (diff)
Many small fixes due to the result of zend analyzer.
Diffstat (limited to 'framework/Web/UI/TTemplateManager.php')
-rw-r--r--framework/Web/UI/TTemplateManager.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php
index b2b2f830..7c32e6a1 100644
--- a/framework/Web/UI/TTemplateManager.php
+++ b/framework/Web/UI/TTemplateManager.php
@@ -583,7 +583,7 @@ class TTemplate extends TApplicationComponent implements ITemplate
}
else if(strpos($str,'<!--')===0) // HTML comments
{
- $state=0;
+ // do nothing
}
else if(strpos($str,'<!')===0) // template comments
{
@@ -685,6 +685,7 @@ class TTemplate extends TApplicationComponent implements ITemplate
return array(self::CONFIG_LOCALIZATION,trim(substr($value,3,strlen($value)-6)));
else if($value[2]==='$')
return array(self::CONFIG_PARAMETER,trim(substr($value,3,strlen($value)-5)));
+ return '';
}
protected function validateAttributes($type,$attributes)