summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TPage.php
diff options
context:
space:
mode:
authorxue <>2005-12-08 17:51:08 +0000
committerxue <>2005-12-08 17:51:08 +0000
commit1bbff5ec853ae88cdfe1446d22c06a87fe305c0f (patch)
treeae353445a282289e947f389f5e7ef306e0b53de9 /framework/Web/UI/TPage.php
parent67512372613e56f223d810af3bc368834167707d (diff)
Diffstat (limited to 'framework/Web/UI/TPage.php')
-rw-r--r--framework/Web/UI/TPage.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php
index e2565291..f9d8f879 100644
--- a/framework/Web/UI/TPage.php
+++ b/framework/Web/UI/TPage.php
@@ -446,6 +446,17 @@ class TPage extends TTemplateControl
protected function onPreRenderComplete($param)
{
$this->raiseEvent('PreRenderComplete',$this,$param);
+ $cs=$this->getClientScript();
+ if($this->_theme)
+ {
+ foreach($this->_theme->getStyleSheetFiles() as $url)
+ $cs->registerStyleSheetFile($url,$url);
+ }
+ if($this->_styleSheet)
+ {
+ foreach($this->_styleSheet->getStyleSheetFiles() as $url)
+ $cs->registerStyleSheetFile($url,$url);
+ }
}
/**