X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialCategories.php;h=9040c6406c9c9d1b7401e4f87c20399399bf3efa;hb=e28e7592e37c4a5fd559fdc4b5cbaa2b3af1ed35;hp=6d2831c7b0433ad4e17de4e1687618ab1674f23c;hpb=f2fbedd5e0375a48d34f34d4f1dbb400d9283181;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialCategories.php b/includes/specials/SpecialCategories.php index 6d2831c7b0..9040c6406c 100644 --- a/includes/specials/SpecialCategories.php +++ b/includes/specials/SpecialCategories.php @@ -50,6 +50,10 @@ class SpecialCategories extends SpecialPage { Html::closeElement( 'div' ) ); } + + protected function getGroupName() { + return 'pages'; + } } /** @@ -64,14 +68,15 @@ class CategoryPager extends AlphabeticPager { $from = str_replace( ' ', '_', $from ); if( $from !== '' ) { $from = Title::capitalize( $from, NS_CATEGORY ); - $this->mOffset = $from; + $this->setOffset( $from ); + $this->setIncludeOffset( true ); } } function getQueryInfo() { return array( 'tables' => array( 'category' ), - 'fields' => array( 'cat_title','cat_pages' ), + 'fields' => array( 'cat_title', 'cat_pages' ), 'conds' => array( 'cat_pages > 0' ), 'options' => array( 'USE INDEX' => 'cat_title' ), ); @@ -111,7 +116,7 @@ class CategoryPager extends AlphabeticPager { return parent::getBody(); } - function formatRow($result) { + function formatRow( $result ) { $title = Title::makeTitle( NS_CATEGORY, $result->cat_title ); $titleText = Linker::link( $title, htmlspecialchars( $title->getText() ) ); $count = $this->msg( 'nmembers' )->numParams( $result->cat_pages )->escaped();