aboutsummaryrefslogtreecommitdiffstats
path: root/include/page_tail.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/page_tail.php')
-rw-r--r--include/page_tail.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/include/page_tail.php b/include/page_tail.php
index 1092daefc..8ea329f4d 100644
--- a/include/page_tail.php
+++ b/include/page_tail.php
@@ -26,26 +26,27 @@
// +-----------------------------------------------------------------------+
$template->set_filenames(array('tail'=>'footer.tpl'));
-//------------------------------------------------------------- generation time
-
-$time = get_elapsed_time( $t2, get_moment() );
-
$template->assign_vars(
array(
- 'TIME' => $time,
'VERSION' => PHPWG_VERSION,
'MAIL'=>$conf['mail_webmaster'],
'L_GEN_TIME' => $lang['generation_time'],
+ 'L_SQL_QUERIES_IN' => $lang['sql_queries_in'],
'L_SEND_MAIL' => $lang['send_mail'],
'L_TITLE_MAIL' => $lang['title_send_mail'],
'L_WEBMASTER'=>$lang['webmaster'],
-
));
-
+//------------------------------------------------------------- generation time
if ($conf['show_gt'])
{
- $template->assign_block_vars('debug', array());
+ $time = get_elapsed_time( $t2, get_moment() );
+
+ $template->assign_block_vars(
+ 'debug',
+ array('TIME' => $time,
+ 'NB_QUERIES' => $count_queries,
+ 'SQL_TIME' => number_format($queries_time, 3, '.', ' ').' s'));
}
//