From 35076ee1b9e32618d3c92bdd8aee20f2c4abb694 Mon Sep 17 00:00:00 2001 From: rvelices Date: Sat, 1 Mar 2008 13:12:07 +0000 Subject: - 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 --- include/page_tail.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'include/page_tail.php') diff --git a/include/page_tail.php b/include/page_tail.php index dcb9155a3..4e5f88074 100644 --- a/include/page_tail.php +++ b/include/page_tail.php @@ -44,15 +44,20 @@ if (!is_a_guest()) //------------------------------------------------------------- generation time $debug_vars = array(); -if ($conf['show_gt']) + +if ($conf['show_queries']) { - $time = get_elapsed_time($t2, get_moment()); + $debug_vars = array_merge($debug_vars, array('QUERIES_LIST' => $debug) ); +} +if ($conf['show_gt']) +{ 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(); +?> \ No newline at end of file -- cgit v1.2.3