mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-05 04:52:47 +02:00
- recent pics are sorted by date descending, and only then by conf['order_by']
git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2423 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -394,6 +394,15 @@ SELECT image_id
|
||||
// +-----------------------------------------------------------------------+
|
||||
else if ($page['section'] == 'recent_pics')
|
||||
{
|
||||
if ( !isset($page['super_order_by']) )
|
||||
{
|
||||
$conf['order_by'] = str_replace(
|
||||
'ORDER BY ',
|
||||
'ORDER BY date_available DESC,',
|
||||
$conf['order_by']
|
||||
);
|
||||
}
|
||||
|
||||
$query = '
|
||||
SELECT DISTINCT(id)
|
||||
FROM '.IMAGES_TABLE.'
|
||||
|
||||
Reference in New Issue
Block a user