Changeset 18464


Ignore:
Timestamp:
Oct 4, 2012, 6:43:58 PM (12 years ago)
Author:
mistic100
Message:

feature:2614 restore global_rank on recent_cats

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/category_cats.inc.php

    r18462 r18464  
    7272$categories_sql = hash_from_query($query, 'id');
    7373
     74if ($page['section']=='recent_cats')
     75{
     76  usort($categories_sql, 'global_rank_compare');
     77}
     78
    7479$page['total_categories'] = count($categories_sql);
    7580
     
    183188}
    184189
    185 if ($page['section']=='recent_cats')
    186 {
    187   usort($categories, 'global_rank_compare');
    188 }
    189190if (count($categories) > 0)
    190191{
Note: See TracChangeset for help on using the changeset viewer.