- 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:
rvelices
2008-07-05 00:25:11 +00:00
parent 0499c2ccc5
commit dc40995cad

View File

@@ -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.'