X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSpecialCategories.php;h=efe65a78cce3f024dbc031c12f706ae2e82e99d0;hb=2771512dbeba455572f5935fe0a3b80720dae9af;hp=1cebdcc44d0937b268265e45e2456773e5db8c10;hpb=46956edf7386e63571daa1a193c2973d382dc17b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SpecialCategories.php b/includes/SpecialCategories.php index 1cebdcc44d..efe65a78cc 100644 --- a/includes/SpecialCategories.php +++ b/includes/SpecialCategories.php @@ -9,13 +9,17 @@ function wfSpecialCategories() { $cap = new CategoryPager(); $wgOut->addHTML( - wfMsgWikiHtml( 'categoriespagetext' ) . + wfMsgExt( 'categoriespagetext', array( 'parse' ) ) . $cap->getNavigationBar() . '' . $cap->getNavigationBar() ); } +/** + * @addtogroup SpecialPage + * @addtogroup Pager + */ class CategoryPager extends AlphabeticPager { function getQueryInfo() { return array( @@ -49,14 +53,11 @@ class CategoryPager extends AlphabeticPager { function formatRow($result) { global $wgLang; $title = Title::makeTitle( NS_CATEGORY, $result->cl_to ); - return ( - '
  • ' . - $this->getSkin()->makeLinkObj( $title, $title->getText() ) - . ' ' . - wfMsgExt( 'nmembers', array( 'parsemag', 'escape'), - $wgLang->formatNum( $result->count ) ) - . "
  • \n" ); + $titleText = $this->getSkin()->makeLinkObj( $title, htmlspecialchars( $title->getText() ) ); + $count = wfMsgExt( 'nmembers', array( 'parsemag', 'escape' ), + $wgLang->formatNum( $result->count ) ); + return Xml::tags('li', null, "$titleText ($count)" ) . "\n"; } } -?> +