Navigation Menu

Skip to content

Commit

Permalink
feature:2614 restore global_rank on recent_cats
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@18464 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
mistic100 committed Oct 4, 2012
1 parent b3e71e4 commit 8501556
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions include/category_cats.inc.php
Expand Up @@ -71,6 +71,11 @@

$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(
Expand Down Expand Up @@ -182,10 +187,6 @@
}
}

if ($page['section']=='recent_cats')
{
usort($categories, 'global_rank_compare');
}
if (count($categories) > 0)
{
$infos_of_image = array();
Expand Down

0 comments on commit 8501556

Please sign in to comment.