aboutsummaryrefslogtreecommitdiffstats
path: root/include/page_tail.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-03-01 13:12:07 +0000
committerrvelices <rv-github@modusoptimus.com>2008-03-01 13:12:07 +0000
commit35076ee1b9e32618d3c92bdd8aee20f2c4abb694 (patch)
tree7a7ece7dcc77d5304366ea3bd456152a1285522e /include/page_tail.php
parentb2b00ba7be2d8b80cfa30aca624706162dcb7800 (diff)
- 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
Diffstat (limited to 'include/page_tail.php')
-rw-r--r--include/page_tail.php19
1 files changed, 10 insertions, 9 deletions
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