We need to select the namespace, even hardcoded, this is causing: Notice: Undefined...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 22 Dec 2010 15:29:29 +0000 (15:29 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 22 Dec 2010 15:29:29 +0000 (15:29 +0000)
includes/specials/SpecialMostlinkedcategories.php

index 75ecd93..f491a70 100644 (file)
@@ -42,6 +42,7 @@ class MostlinkedCategoriesPage extends QueryPage {
                return array (
                        'tables' => array ( 'categorylinks' ),
                        'fields' => array ( 'cl_to AS title',
+                                       NS_CATEGORY . ' AS namespace',
                                        'COUNT(*) AS value' ),
                        'options' => array ( 'GROUP BY' => 'cl_to' )
                );