summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2008-01-04 22:32:38 +0000
committerxue <>2008-01-04 22:32:38 +0000
commitfaa7d9973a9b9ee8d3e1459e2ad414bee245478b (patch)
tree1edcef7b4253dea7d436eb0de94fbf888b937afb
parentdba0eef8ab3986cdc84d6b9fec38cb9017a989c2 (diff)
fixed #753.
-rw-r--r--HISTORY1
-rw-r--r--framework/Web/UI/TPage.php14
2 files changed, 9 insertions, 6 deletions
diff --git a/HISTORY b/HISTORY
index 0dda22b4..3e052b58 100644
--- a/HISTORY
+++ b/HISTORY
@@ -4,6 +4,7 @@ BUG: Ticket#707 - TPropertyAccess sets property twice on object when using sette
BUG: Ticket#719 - TAutoCompleter should not trigger Validation if CausesValidation=False (Christophe)
BUG: Ticket#744 - Callback error handling is improved (Qiang)
BUG: Ticket#750 - The "expire" parameter is used inconsistently in cache modules (Qiang)
+BUG: Ticket#753 - Themes not allways being set (Qiang)
BUG: Fixed a bug in TPropertyValue::ensureArray() (Qiang)
CHG: Changed TConditional so that the controls in its template behave like they are in its parent (Qiang)
CHG: Active Record many-to-many relationship change from self::HAS_MANY to self::MANY_TO_MANY (Wei)
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);
}