From faa7d9973a9b9ee8d3e1459e2ad414bee245478b Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 4 Jan 2008 22:32:38 +0000 Subject: fixed #753. --- HISTORY | 1 + framework/Web/UI/TPage.php | 14 ++++++++------ 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); } -- cgit v1.2.3