Skip to content

Commit

Permalink
Bug 36785 Special:Shortpages lists only NS_MAIN pages. (pages from al…
Browse files Browse the repository at this point in the history
…l $wgContentNamespaces should be listed)

Change-Id: I9d7307ae22745e7aa640ed611ea64f76e2507651
  • Loading branch information
hexmode committed May 14, 2012
1 parent 50927f3 commit 843738b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/specials/SpecialShortpages.php
Expand Up @@ -43,7 +43,8 @@ function getQueryInfo() {
'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' )
);
Expand Down

0 comments on commit 843738b

Please sign in to comment.