From: Robin Pepermans Date: Thu, 15 Sep 2011 19:07:24 +0000 (+0000) Subject: Use wfSpecialList() so it displays properly when user direction != content direction... X-Git-Tag: 1.31.0-rc.0~27630 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=12f75bffa23e2c44c614c5310378c15515b931fd;p=lhc%2Fweb%2Fwiklou.git Use wfSpecialList() so it displays properly when user direction != content direction, and call Linker function statically. --- 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 ) {