Allow "ORDER BY value" to do its thing for databases without special magic. Per bug...
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Sat, 9 Dec 2006 15:49:13 +0000 (15:49 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Sat, 9 Dec 2006 15:49:13 +0000 (15:49 +0000)
includes/SpecialCategories.php
includes/SpecialUnusedcategories.php

index 89cff20..46601ef 100644 (file)
@@ -33,7 +33,7 @@ class CategoriesPage extends QueryPage {
                $s= "SELECT 'Categories' as type,
                                {$NScat} as namespace,
                                cl_to as title,
-                               1 as value,
+                               cl_to as value,
                                COUNT(*) as count
                           FROM $categorylinks
                           GROUP BY 1,2,3,4";
index 6520513..80f46a8 100644 (file)
@@ -25,7 +25,7 @@ class UnusedCategoriesPage extends QueryPage {
                $dbr =& wfGetDB( DB_SLAVE );
                list( $categorylinks, $page ) = $dbr->tableNamesN( 'categorylinks', 'page' );
                return "SELECT 'Unusedcategories' as type,
-                               {$NScat} as namespace, page_title as title, 1 as value
+                               {$NScat} as namespace, page_title as title, page_title as value
                                FROM $page
                                LEFT JOIN $categorylinks ON page_title=cl_to
                                WHERE cl_from IS NULL