From 7688a7cbb6c4906f70d87b56cd6e90d028e99666 Mon Sep 17 00:00:00 2001 From: rvelices Date: Mon, 3 Mar 2008 12:50:54 +0000 Subject: - history, stats and redirect go smarty - lang correction - small change in calling check_server_plugins (use by ref param instead of global) git-svn-id: http://piwigo.org/svn/trunk@2245 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/stats.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'admin/stats.php') diff --git a/admin/stats.php b/admin/stats.php index 07a98848c..72970dc57 100644 --- a/admin/stats.php +++ b/admin/stats.php @@ -388,14 +388,14 @@ $template->set_filename('stats', 'admin/stats.tpl'); // TabSheet initialization history_tabsheet(); -$base_url = PHPWG_ROOT_PATH.'admin.php?page=history'; +$base_url = get_root_url().'admin.php?page=history'; -$template->assign_vars( +$template->assign( array( 'L_STAT_TITLE' => implode($conf['level_separator'], $title_parts), 'PERIOD_LABEL' => $period_label, - 'U_HELP' => PHPWG_ROOT_PATH.'popuphelp.php?page=history', - 'F_ACTION' => PHPWG_ROOT_PATH.'admin.php?page=history', + 'U_HELP' => get_root_url().'popuphelp.php?page=history', + 'F_ACTION' => $base_url, ) ); @@ -468,7 +468,7 @@ if (count($datas) > 0) else if (isset($page['month'])) { $url = - PHPWG_ROOT_PATH.'admin.php' + get_root_url().'admin.php' .'?page=stats' .'&year='.$page['year'] .'&month='.$page['month'] @@ -482,7 +482,7 @@ if (count($datas) > 0) else if (isset($page['year'])) { $url = - PHPWG_ROOT_PATH.'admin.php' + get_root_url().'admin.php' .'?page=stats' .'&year='.$page['year'] .'&month='.$i @@ -494,7 +494,7 @@ if (count($datas) > 0) { // at least the year is defined $url = - PHPWG_ROOT_PATH.'admin.php' + get_root_url().'admin.php' .'?page=stats' .'&year='.$i ; @@ -507,8 +507,8 @@ if (count($datas) > 0) $value = ''.$value.''; } - $template->assign_block_vars( - 'statrow', + $template->append( + 'statrows', array( 'VALUE' => $value, 'PAGES' => $datas[$i], -- cgit v1.2.3