- index.tpl, menubar.tpl, mainpage_categories.tpl and month_calendar.tpl go smarty

- better template debugging tweak (the smarty console is shown only once at the end)

git-svn-id: http://piwigo.org/svn/trunk@2231 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2008-03-01 13:12:07 +00:00
parent b2b00ba7be
commit 35076ee1b9
14 changed files with 572 additions and 636 deletions
+10 -9
View File
@@ -44,15 +44,20 @@ if (!is_a_guest())
//------------------------------------------------------------- generation time
$debug_vars = array();
if ($conf['show_queries'])
{
$debug_vars = array_merge($debug_vars, array('QUERIES_LIST' => $debug) );
}
if ($conf['show_gt'])
{
$time = get_elapsed_time($t2, get_moment());
if (!isset($page['count_queries']))
{
$page['count_queries'] = 0;
$page['queries_time'] = 0;
}
$time = get_elapsed_time($t2, get_moment());
$debug_vars = array_merge($debug_vars,
array('TIME' => $time,
@@ -61,16 +66,12 @@ if ($conf['show_gt'])
);
}
if ($conf['show_queries'])
{
$debug_vars = array_merge($debug_vars, array('QUERIES_LIST' => $debug) );
}
$template->assign('debug', $debug_vars );
trigger_action('loc_end_page_tail');
//
// Generate the page
//
$template->pparse('tail');
?>
$template->parse('tail');
$template->p();
?>