aboutsummaryrefslogtreecommitdiffstats
path: root/admin/stats.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-03-03 12:50:54 +0000
committerrvelices <rv-github@modusoptimus.com>2008-03-03 12:50:54 +0000
commit7688a7cbb6c4906f70d87b56cd6e90d028e99666 (patch)
treee197ac0fef76f918e100ae1e45c582309d3e99d8 /admin/stats.php
parent14bfa8a3e6e5fa81fa3eba565a1b696840f351cd (diff)
- 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
Diffstat (limited to '')
-rw-r--r--admin/stats.php18
1 files changed, 9 insertions, 9 deletions
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'
.'&amp;year='.$page['year']
.'&amp;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'
.'&amp;year='.$page['year']
.'&amp;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'
.'&amp;year='.$i
;
@@ -507,8 +507,8 @@ if (count($datas) > 0)
$value = '<a href="'.$url.'">'.$value.'</a>';
}
- $template->assign_block_vars(
- 'statrow',
+ $template->append(
+ 'statrows',
array(
'VALUE' => $value,
'PAGES' => $datas[$i],