diff options
author | xue <> | 2008-01-04 22:32:38 +0000 |
---|---|---|
committer | xue <> | 2008-01-04 22:32:38 +0000 |
commit | faa7d9973a9b9ee8d3e1459e2ad414bee245478b (patch) | |
tree | 1edcef7b4253dea7d436eb0de94fbf888b937afb /framework/Web | |
parent | dba0eef8ab3986cdc84d6b9fec38cb9017a989c2 (diff) |
fixed #753.
Diffstat (limited to 'framework/Web')
-rw-r--r-- | framework/Web/UI/TPage.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php index dba0b5b5..13c9eef3 100644 --- a/framework/Web/UI/TPage.php +++ b/framework/Web/UI/TPage.php @@ -645,18 +645,20 @@ class TPage extends TTemplateControl {
$this->raiseEvent('OnPreRenderComplete',$this,$param);
$cs=$this->getClientScript();
- if($this->_theme instanceof ITheme)
+ $theme=$this->getTheme();
+ if($theme instanceof ITheme)
{
- foreach($this->_theme->getStyleSheetFiles() as $url)
+ foreach($theme->getStyleSheetFiles() as $url)
$cs->registerStyleSheetFile($url,$url,$this->getCssMediaType($url));
- foreach($this->_theme->getJavaScriptFiles() as $url)
+ foreach($theme->getJavaScriptFiles() as $url)
$cs->registerHeadScriptFile($url,$url);
}
- if($this->_styleSheet instanceof ITheme)
+ $styleSheet=$this->getStyleSheetTheme();
+ if($styleSheet instanceof ITheme)
{
- foreach($this->_styleSheet->getStyleSheetFiles() as $url)
+ foreach($stylesheet->getStyleSheetFiles() as $url)
$cs->registerStyleSheetFile($url,$url,$this->getCssMediaType($url));
- foreach($this->_styleSheet->getJavaScriptFiles() as $url)
+ foreach($styleSheet->getJavaScriptFiles() as $url)
$cs->registerHeadScriptFile($url,$url);
}
|