From 24903f219821e17dc69002654fa709590ba312a8 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 11 Jan 2005 20:04:19 +0000 Subject: - 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 --- admin/images/global_stats.img.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'admin/images/global_stats.img.php') diff --git a/admin/images/global_stats.img.php b/admin/images/global_stats.img.php index f1154ff18..3118ff66f 100644 --- a/admin/images/global_stats.img.php +++ b/admin/images/global_stats.img.php @@ -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;"; -- cgit v1.2.3