summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TPage.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/TPage.php')
-rw-r--r--framework/Web/UI/TPage.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php
index 08fbd2fe..232878da 100644
--- a/framework/Web/UI/TPage.php
+++ b/framework/Web/UI/TPage.php
@@ -66,7 +66,7 @@ class TPage extends TTemplateControl
return parent::loadTemplate();
else
{
- $template=Prado::getApplication()->getService()->getTemplateManager()->loadTemplateByFileName(Prado::getPathOfNamespace($this->_templateFile,'.tpl'));
+ $template=Prado::getApplication()->getService()->getTemplateManager()->getTemplateByFileName(Prado::getPathOfNamespace($this->_templateFile,'.tpl'));
$this->setTemplate($template);
return $template;
}
@@ -326,9 +326,9 @@ EOD;
private function initializeThemes()
{
if($this->_themeName!=='')
- $this->_theme=new TTheme($this->_themeName);
+ $this->_theme=$this->getService()->getThemeManager()->getTheme($this->_themeName);
if($this->_styleSheetName!=='')
- $this->_styleSheet=new TTheme($this->_styleSheetName);
+ $this->_styleSheet=$this->getService()->getThemeManager()->getTheme($this->_styleSheetName);
}
/**