X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialShortpages.php;h=9b50875a3bfff59bc8dd1dc43db667486c810f74;hb=8f806d211f218d785c728c76aa12ec22352bd520;hp=ee045744a83621bafb20a23b9416fc7aacc42cf4;hpb=575019d19c99e12615a4d76c98779799a7137f0c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialShortpages.php b/includes/specials/SpecialShortpages.php index ee045744a8..9b50875a3b 100644 --- a/includes/specials/SpecialShortpages.php +++ b/includes/specials/SpecialShortpages.php @@ -38,15 +38,15 @@ class ShortPagesPage extends QueryPage { } function getQueryInfo() { - return array ( - 'tables' => array ( 'page' ), - 'fields' => array ( 'page_namespace AS namespace', - 'page_title AS title', - 'page_len AS value' ), - 'conds' => array ( 'page_namespace' => + return array( + 'tables' => array( 'page' ), + 'fields' => array( 'namespace' => 'page_namespace', + 'title' => 'page_title', + 'value' => 'page_len' ), + 'conds' => array( 'page_namespace' => MWNamespace::getContentNamespaces(), 'page_is_redirect' => 0 ), - 'options' => array ( 'USE INDEX' => 'page_redirect_namespace_len' ) + 'options' => array( 'USE INDEX' => 'page_redirect_namespace_len' ) ); } @@ -56,8 +56,7 @@ class ShortPagesPage extends QueryPage { /** * @param $db DatabaseBase - * @param $res - * @return void + * @param ResultWrapper $res */ function preprocessResults( $db, $res ) { # There's no point doing a batch check if we aren't caching results; @@ -79,6 +78,11 @@ class ShortPagesPage extends QueryPage { return false; } + /** + * @param Skin $skin + * @param object $result Result row + * @return string + */ function formatResult( $skin, $result ) { $dm = $this->getLanguage()->getDirMark(); @@ -110,4 +114,8 @@ class ShortPagesPage extends QueryPage { ? "${hlinkInParentheses} {$dm}{$plink} {$dm}[{$size}]" : "${hlinkInParentheses} {$dm}{$plink} {$dm}[{$size}]"; } + + protected function getGroupName() { + return 'maintenance'; + } }