Swap from NS_MAIN to use MWNamespace::getContentNamespaces()
authorSam Reed <reedy@users.mediawiki.org>
Fri, 19 Aug 2011 23:12:46 +0000 (23:12 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 19 Aug 2011 23:12:46 +0000 (23:12 +0000)
includes/specials/SpecialWithoutinterwiki.php

index 9d91b83..3a37835 100644 (file)
@@ -84,7 +84,7 @@ class WithoutInterwikiPage extends PageQueryPage {
                                        'page_title AS title',
                                        'page_title AS value' ),
                        'conds' => array ( 'll_title IS NULL',
-                                       'page_namespace' => NS_MAIN,
+                                       'page_namespace' => MWNamespace::getContentNamespaces(),
                                        'page_is_redirect' => 0 ),
                        'join_conds' => array ( 'langlinks' => array (
                                        'LEFT JOIN', 'll_from = page_id' ) )