mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
feature:2614 restore global_rank on recent_cats
git-svn-id: http://piwigo.org/svn/trunk@18464 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -71,6 +71,11 @@ $query.= '
|
||||
|
||||
$categories_sql = hash_from_query($query, 'id');
|
||||
|
||||
if ($page['section']=='recent_cats')
|
||||
{
|
||||
usort($categories_sql, 'global_rank_compare');
|
||||
}
|
||||
|
||||
$page['total_categories'] = count($categories_sql);
|
||||
|
||||
$categories_sql = array_slice(
|
||||
@@ -182,10 +187,6 @@ SELECT
|
||||
}
|
||||
}
|
||||
|
||||
if ($page['section']=='recent_cats')
|
||||
{
|
||||
usort($categories, 'global_rank_compare');
|
||||
}
|
||||
if (count($categories) > 0)
|
||||
{
|
||||
$infos_of_image = array();
|
||||
|
||||
Reference in New Issue
Block a user