possibility to choose the date field you want to use for calendar category

(date_available or date_creation).


git-svn-id: http://piwigo.org/svn/trunk@497 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
z0rglub
2004-08-26 23:00:28 +00:00
parent 11c2e58053
commit c414a9133e
3 changed files with 24 additions and 23 deletions
+3 -5
View File
@@ -686,13 +686,11 @@ SELECT COUNT(DISTINCT(id)) AS nb_total_images
$page['title'] .= $page['calendar_year'];
$page['title'] .= ')';
}
$page['where'] = 'WHERE '.$conf['calendar_datefield'].' IS NOT NULL';
if (isset($forbidden))
{
$page['where'] = 'WHERE '.$forbidden;
}
else
{
$page['where'] = 'WHERE 1=1';
$page['where'].= ' AND '.$forbidden;
}
}