From 843738b4cd68d2e3121430237de085a6dd9df8eb Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Mon, 14 May 2012 13:11:48 -0400 Subject: [PATCH] Bug 36785 Special:Shortpages lists only NS_MAIN pages. (pages from all $wgContentNamespaces should be listed) Change-Id: I9d7307ae22745e7aa640ed611ea64f76e2507651 --- includes/specials/SpecialShortpages.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/specials/SpecialShortpages.php b/includes/specials/SpecialShortpages.php index 8622b928c1..195e5bf286 100644 --- a/includes/specials/SpecialShortpages.php +++ b/includes/specials/SpecialShortpages.php @@ -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' ) ); -- 2.20.1