diff options
author | rvelices <rv-github@modusoptimus.com> | 2008-03-06 00:25:47 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2008-03-06 00:25:47 +0000 |
commit | 37446caa5c362d998be6e1343995a5a7548a98a6 (patch) | |
tree | 3e124ec42bb7851756dd25229373172cf0400ccf /include | |
parent | 7e1e705f8ba79c7579a1c433ad6cf3488a4e349b (diff) |
- 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
Diffstat (limited to 'include')
-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); } |