diff options
author | xue <> | 2006-08-08 11:56:27 +0000 |
---|---|---|
committer | xue <> | 2006-08-08 11:56:27 +0000 |
commit | 7012130a7c98d602f3408d04c620a69055607781 (patch) | |
tree | 42c58a7e08b529c507b66fd82972da5d1e2043c7 /framework/Web/UI/TThemeManager.php | |
parent | 8b6da0a47404ce4108e54678de7507a5bebf49b7 (diff) |
Fixed a bug that would prevent from using <prop:> tag in skins
Diffstat (limited to 'framework/Web/UI/TThemeManager.php')
-rw-r--r-- | framework/Web/UI/TThemeManager.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Web/UI/TThemeManager.php b/framework/Web/UI/TThemeManager.php index 245f8049..1d80d0c5 100644 --- a/framework/Web/UI/TThemeManager.php +++ b/framework/Web/UI/TThemeManager.php @@ -292,10 +292,10 @@ class TTheme extends TApplicationComponent implements ITheme $template=new TTemplate(file_get_contents($themePath.'/'.$file),$themePath,$themePath.'/'.$file);
foreach($template->getItems() as $skin)
{
- if($skin[0]!==-1)
- throw new TConfigurationException('theme_control_nested',$skin[1],dirname($themePath));
- else if(!isset($skin[2])) // a text string, ignored
+ if(!isset($skin[2])) // a text string, ignored
continue;
+ else if($skin[0]!==-1)
+ throw new TConfigurationException('theme_control_nested',$skin[1],dirname($themePath));
$type=$skin[1];
$id=isset($skin[2]['skinid'])?$skin[2]['skinid']:0;
unset($skin[2]['skinid']);
|