diff options
Diffstat (limited to 'include/page_tail.php')
-rw-r--r-- | include/page_tail.php | 19 |
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 |