From 12f75bffa23e2c44c614c5310378c15515b931fd Mon Sep 17 00:00:00 2001 From: Robin Pepermans Date: Thu, 15 Sep 2011 19:07:24 +0000 Subject: [PATCH] Use wfSpecialList() so it displays properly when user direction != content direction, and call Linker function statically. --- includes/specials/SpecialCategories.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialCategories.php b/includes/specials/SpecialCategories.php index 8817d7d812..91d98b8683 100644 --- a/includes/specials/SpecialCategories.php +++ b/includes/specials/SpecialCategories.php @@ -120,10 +120,10 @@ class CategoryPager extends AlphabeticPager { function formatRow($result) { global $wgLang; $title = Title::makeTitle( NS_CATEGORY, $result->cat_title ); - $titleText = $this->getSkin()->link( $title, htmlspecialchars( $title->getText() ) ); + $titleText = Linker::link( $title, htmlspecialchars( $title->getText() ) ); $count = wfMsgExt( 'nmembers', array( 'parsemag', 'escape' ), $wgLang->formatNum( $result->cat_pages ) ); - return Xml::tags('li', null, "$titleText ($count)" ) . "\n"; + return Xml::tags('li', null, wfSpecialList( $titleText, $count ) ) . "\n"; } public function getStartForm( $from ) { -- 2.20.1