summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web')
-rw-r--r--framework/Web/UI/TPage.php4
-rw-r--r--framework/Web/UI/TThemeManager.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php
index 53090e7f..f4d5fa99 100644
--- a/framework/Web/UI/TPage.php
+++ b/framework/Web/UI/TPage.php
@@ -455,14 +455,14 @@ class TPage extends TTemplateControl
{
$this->raiseEvent('OnPreRenderComplete',$this,$param);
$cs=$this->getClientScript();
- if($this->_theme)
+ if($this->_theme instanceof ITheme)
{
foreach($this->_theme->getStyleSheetFiles() as $url)
$cs->registerStyleSheetFile($url,$url);
foreach($this->_theme->getJavaScriptFiles() as $url)
$cs->registerHeadScriptFile($url,$url);
}
- if($this->_styleSheet)
+ if($this->_styleSheet instanceof ITheme)
{
foreach($this->_styleSheet->getStyleSheetFiles() as $url)
$cs->registerStyleSheetFile($url,$url);
diff --git a/framework/Web/UI/TThemeManager.php b/framework/Web/UI/TThemeManager.php
index f2243e7c..f29a8def 100644
--- a/framework/Web/UI/TThemeManager.php
+++ b/framework/Web/UI/TThemeManager.php
@@ -164,7 +164,7 @@ class TThemeManager extends TModule
* @package System.Web.UI
* @since 3.0
*/
-class TTheme extends TComponent
+class TTheme extends TComponent implements ITheme
{
/**
* prefix for cache variable name used to store parsed themes