mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-09 10:13:00 +02:00
- bug fixed : use the constant to history table instead of hard coded table
name git-svn-id: http://piwigo.org/svn/trunk@685 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -37,7 +37,7 @@ $legend = $lang['stats_global_graph_title'];
|
||||
$imageHeight = 256;
|
||||
$imageWidth = 320;
|
||||
$sql = "SELECT DISTINCT COUNT(*), MONTH(date)
|
||||
FROM phpwg_history
|
||||
FROM ".HISTORY_TABLE."
|
||||
WHERE (date > DATE_SUB(CURRENT_DATE(), INTERVAL 12 MONTH))
|
||||
GROUP BY DATE_FORMAT(date,'%Y-%m') DESC;";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user