From 37446caa5c362d998be6e1343995a5a7548a98a6 Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 6 Mar 2008 00:25:47 +0000 Subject: - upgrade goes smarty - event_tracer goes smarty - correction in index.tpl git-svn-id: http://piwigo.org/svn/trunk@2254 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/template.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include') 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); } -- cgit v1.2.3