Ignore:
Timestamp:
Aug 2, 2011, 9:20:50 PM (13 years ago)
Author:
rvelices
Message:

rename #images.average_rate to rating_score

File:
1 edited

Legend:

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

    r11827 r11893  
    291291    array(
    292292    array(l10n('Default'), '', true),
    293     array(l10n('Rating score'), 'average_rate DESC', $conf['rate']),
     293    array(l10n('Rating score'), 'rating_score DESC', $conf['rate']),
    294294    array(l10n('Most visited'), 'hit DESC', true),
    295295    array(l10n('Creation date'), 'date_creation DESC', true),
     
    560560  $tree = array();
    561561  $key_of_cat = array();
    562  
     562
    563563  foreach ($categories as $key => &$node)
    564564  {
    565565    $key_of_cat[$node['id']] = $key;
    566    
     566
    567567    if (!isset($node['id_uppercat']))
    568568    {
     
    575575        $categories[ $key_of_cat[ $node['id_uppercat'] ] ]['sub_categories'] = array();
    576576      }
    577      
     577
    578578      $categories[ $key_of_cat[ $node['id_uppercat'] ] ]['sub_categories'][$key] = &$node;
    579579    }
    580580  }
    581  
     581
    582582  return $tree;
    583583}
Note: See TracChangeset for help on using the changeset viewer.