aboutsummaryrefslogtreecommitdiffstats
path: root/admin/stats.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-09-25 20:50:14 +0000
committerplegall <plg@piwigo.org>2005-09-25 20:50:14 +0000
commite624f27b5fb8c8dffc2bb9f2db8638799bb5f1f8 (patch)
tree158c9a04903312edd383a2958970056cb47634e8 /admin/stats.php
parent8f058fcc9bcff868a29be0e8077eb7fed1b37f6f (diff)
- bug 163 fixed: link error when cookies disabled in admin/stats
git-svn-id: http://piwigo.org/svn/trunk@877 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/stats.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/admin/stats.php b/admin/stats.php
index 5e823a38d..cd72ec81e 100644
--- a/admin/stats.php
+++ b/admin/stats.php
@@ -91,9 +91,17 @@ while ( $row = mysql_fetch_array( $result ) )
$current_month = $row['y']."-";
if ($row['m'] <10) {$current_month.='0';}
$current_month .= $row['m'];
+
$where_clause = "DATE_FORMAT(date,'%Y-%m') = '".$current_month."'";
- $value = "<a href='".PHPWG_ROOT_PATH."admin.php?page=stats";
- $value.= "&amp;year=".$row['y']."&amp;month=".$row['m']."'>";
+
+ $url =
+ PHPWG_ROOT_PATH.'admin.php'
+ .'?page=stats'
+ .'&amp;year='.$row['y']
+ .'&amp;month='.$row['m']
+ ;
+
+ $value = '<a href="'.add_session_id($url).'">';
$value.= $lang['month'][$row['m']].' '.$row['y'];
$value.= "</a>";
}