Bug 36785 Special:Shortpages lists only NS_MAIN pages. (pages from all $wgContentName...
authorMark A. Hershberger <mah@everybody.org>
Mon, 14 May 2012 17:11:48 +0000 (13:11 -0400)
committerMark A. Hershberger <mah@everybody.org>
Mon, 14 May 2012 17:11:48 +0000 (13:11 -0400)
Change-Id: I9d7307ae22745e7aa640ed611ea64f76e2507651

includes/specials/SpecialShortpages.php

index 8622b92..195e5bf 100644 (file)
@@ -43,7 +43,8 @@ class ShortPagesPage extends QueryPage {
                        'fields' => array ( 'page_namespace AS namespace',
                                        'page_title AS title',
                                        'page_len AS value' ),
-                       'conds' => array ( 'page_namespace' => NS_MAIN,
+                       'conds' => array ( 'page_namespace' =>
+                                       MWNamespace::getContentNamespaces(),
                                        'page_is_redirect' => 0 ),
                        'options' => array ( 'USE INDEX' => 'page_redirect_namespace_len' )
                );