Changeset 11893 for trunk/include/functions_category.inc.php
- Timestamp:
- Aug 2, 2011, 9:20:50 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_category.inc.php
r11827 r11893 291 291 array( 292 292 array(l10n('Default'), '', true), 293 array(l10n('Rating score'), ' average_rate DESC', $conf['rate']),293 array(l10n('Rating score'), 'rating_score DESC', $conf['rate']), 294 294 array(l10n('Most visited'), 'hit DESC', true), 295 295 array(l10n('Creation date'), 'date_creation DESC', true), … … 560 560 $tree = array(); 561 561 $key_of_cat = array(); 562 562 563 563 foreach ($categories as $key => &$node) 564 564 { 565 565 $key_of_cat[$node['id']] = $key; 566 566 567 567 if (!isset($node['id_uppercat'])) 568 568 { … … 575 575 $categories[ $key_of_cat[ $node['id_uppercat'] ] ]['sub_categories'] = array(); 576 576 } 577 577 578 578 $categories[ $key_of_cat[ $node['id_uppercat'] ] ]['sub_categories'][$key] = &$node; 579 579 } 580 580 } 581 581 582 582 return $tree; 583 583 }
Note: See TracChangeset
for help on using the changeset viewer.