From: Mark A. Hershberger Date: Mon, 14 May 2012 17:11:48 +0000 (-0400) Subject: Bug 36785 Special:Shortpages lists only NS_MAIN pages. (pages from all $wgContentName... X-Git-Tag: 1.31.0-rc.0~23516^2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=843738b4cd68d2e3121430237de085a6dd9df8eb;p=lhc%2Fweb%2Fwiklou.git Bug 36785 Special:Shortpages lists only NS_MAIN pages. (pages from all $wgContentNamespaces should be listed) Change-Id: I9d7307ae22745e7aa640ed611ea64f76e2507651 --- 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' ) );