Changeset 3144 for branches/2.0/admin/include
- Timestamp:
- Feb 13, 2009, 10:03:02 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/admin/include/plugins.class.php
r3071 r3144 305 305 $url .= '&version=' . implode(',', $versions_to_check); 306 306 $url .= '&lang=' . substr($user['language'], 0, 2); 307 $url .= '&get_nb_downloads=true'; 307 308 308 309 if (!empty($plugins_to_check)) … … 345 346 case 'author': 346 347 uasort($this->server_plugins, array($this, 'extension_author_compare')); 348 break; 349 case 'downloads': 350 usort($this->server_plugins, array($this, 'extension_downloads_compare')); 347 351 break; 348 352 } … … 509 513 } 510 514 515 function extension_downloads_compare($a, $b) 516 { 517 if ($a['extension_nb_downloads'] < $b['extension_nb_downloads']) return 1; 518 else return -1; 519 } 520 511 521 function sort_plugins_by_state() 512 522 {
Note: See TracChangeset
for help on using the changeset viewer.