mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
- 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:
+10
-9
@@ -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();
|
||||
?>
|
||||
Reference in New Issue
Block a user