- 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
This commit is contained in:
parent
8f058fcc9b
commit
e624f27b5f
2 changed files with 14 additions and 2 deletions
|
|
@ -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.= "&year=".$row['y']."&month=".$row['m']."'>";
|
||||
|
||||
$url =
|
||||
PHPWG_ROOT_PATH.'admin.php'
|
||||
.'?page=stats'
|
||||
.'&year='.$row['y']
|
||||
.'&month='.$row['m']
|
||||
;
|
||||
|
||||
$value = '<a href="'.add_session_id($url).'">';
|
||||
$value.= $lang['month'][$row['m']].' '.$row['y'];
|
||||
$value.= "</a>";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue