- 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
This commit is contained in:
rvelices
2008-03-06 00:25:47 +00:00
parent 7e1e705f8b
commit 37446caa5c
10 changed files with 78 additions and 63 deletions
+5 -2
View File
@@ -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);
}