diff options
Diffstat (limited to 'include/template.class.php')
-rw-r--r-- | include/template.class.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/template.class.php b/include/template.class.php index 62a5a4cfc..77b6df5f0 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -84,8 +84,11 @@ class Template { $this->smarty->assign_by_ref( 'pwg', new PwgTemplateAdapter() ); $this->smarty->register_modifier( 'translate', array('Template', 'mod_translate') ); - include($root.'/theme/'.$theme.'/themeconf.inc.php'); - $this->smarty->assign('themeconf', $themeconf); + if ( !empty($theme) ) + { + include($root.'/theme/'.$theme.'/themeconf.inc.php'); + $this->smarty->assign('themeconf', $themeconf); + } $this->_old = & new TemplateOld($root, $theme); } |