summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TThemeManager.php
diff options
context:
space:
mode:
authorxue <>2005-12-18 01:59:03 +0000
committerxue <>2005-12-18 01:59:03 +0000
commit60aae399eb7d2878632c5629a19767124be1ff24 (patch)
tree098ee04bdcbdbe7a300156f6e9b14b205d4f0839 /framework/Web/UI/TThemeManager.php
parent73512adcb5ed2dca47a03c5e42ec9ebf0a1d9a94 (diff)
Enhanced template syntax about using application parameters.
Diffstat (limited to 'framework/Web/UI/TThemeManager.php')
-rw-r--r--framework/Web/UI/TThemeManager.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Web/UI/TThemeManager.php b/framework/Web/UI/TThemeManager.php
index bc1edd25..6c7457ee 100644
--- a/framework/Web/UI/TThemeManager.php
+++ b/framework/Web/UI/TThemeManager.php
@@ -282,7 +282,7 @@ class TTheme extends TComponent
throw new TConfigurationException('theme_skinid_duplicated',$type,$id,dirname($themePath));
foreach($skin[2] as $name=>$value)
{
- if(is_array($value) && $value[0]===0)
+ if(is_array($value) && ($value[0]===TTemplate::CONFIG_DATABIND || $value[0]===TTemplate::CONFIG_PARAMETER))
throw new TConfigurationException('theme_databind_forbidden',dirname($themePath),$type,$id);
}
$this->_skins[$type][$id]=$skin[2];
@@ -323,9 +323,9 @@ class TTheme extends TComponent
{
if(is_array($value))
{
- if($value[0]===1)
+ if($value[0]===TTemplate::CONFIG_EXPRESSION)
$value=$this->evaluateExpression($value[1]);
- else if($value[0]===2)
+ else if($value[0]===TTemplate::CONFIG_ASSET)
$value=$this->_themeUrl.'/'.ltrim($value[1],'/');
}
if(strpos($name,'.')===false) // is simple property or custom attribute