mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
adds image id in the order by statement. Without it, you can encounter
problems with searchs returning elements that have same date of availability, same filename. images.id is the only field you can be sure of unicity git-svn-id: http://piwigo.org/svn/trunk@505 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
// 2. $conf['order_by'] = " order by file asc";
|
||||
// will only order pictures by file ascending
|
||||
// without taking into account the date_available
|
||||
$conf['order_by'] = ' ORDER BY date_available DESC, file ASC';
|
||||
$conf['order_by'] = ' ORDER BY date_available DESC, file ASC, id ASC';
|
||||
|
||||
$conf['nb_image_row'] = array(4,5,6,7,8);
|
||||
$conf['nb_row_page'] = array(2,3,4,5,6,7,10,20,1000);
|
||||
|
||||
Reference in New Issue
Block a user