aboutsummaryrefslogtreecommitdiffstats
path: root/include/template.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/template.class.php')
-rw-r--r--include/template.class.php7
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);
}