Index: trunk/phase3/includes/specials/SpecialMostlinkedcategories.php |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | */ |
27 | 27 | |
28 | 28 | /** |
29 | | - * A querypage to show categories ordered in descending order by the pages in them |
| 29 | + * A querypage to show categories ordered in descending order by the pages in them |
30 | 30 | * |
31 | 31 | * @ingroup SpecialPage |
32 | 32 | */ |
— | — | @@ -35,16 +35,15 @@ |
36 | 36 | parent::__construct( $name ); |
37 | 37 | } |
38 | 38 | |
39 | | - function isExpensive() { return true; } |
40 | 39 | function isSyndicated() { return false; } |
41 | 40 | |
42 | 41 | function getQueryInfo() { |
43 | 42 | return array ( |
44 | | - 'tables' => array ( 'categorylinks' ), |
45 | | - 'fields' => array ( 'cl_to AS title', |
| 43 | + 'tables' => array ( 'category' ), |
| 44 | + 'fields' => array ( 'cat_title AS title', |
46 | 45 | NS_CATEGORY . ' AS namespace', |
47 | | - 'COUNT(*) AS value' ), |
48 | | - 'options' => array ( 'GROUP BY' => 'cl_to' ) |
| 46 | + 'cat_pages AS value' ), |
| 47 | + 'options' => array ( 'ORDER BY' => 'cat_pages' ) |
49 | 48 | ); |
50 | 49 | } |
51 | 50 | |