diff --git a/includes/specials/SpecialShortpages.php b/includes/specials/SpecialShortpages.php index 8622b928c106..195e5bf28626 100644 --- a/includes/specials/SpecialShortpages.php +++ b/includes/specials/SpecialShortpages.php @@ -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' ) );