Feature 1255 :

sql functions for calendar (interval, year, month, ...)

git-svn-id: http://piwigo.org/svn/trunk@4398 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
nikrou
2009-11-30 20:41:11 +00:00
parent 2f8800b35b
commit f7222bf601
4 changed files with 50 additions and 32 deletions
+2 -1
View File
@@ -258,7 +258,8 @@ WHERE id IN (' . implode(',',$page['items']) .')';
if ($must_show_list)
{
$query = 'SELECT id';
$query = 'SELECT DISTINCT id '.get_extra_fields($conf['order_by']);
$query .= ','.$calendar->date_field;
$query .= $calendar->inner_sql.'
'.$calendar->get_date_where();
if ( isset($page['super_order_by']) )