From: Niklas Laxström Date: Fri, 5 Jun 2009 06:30:10 +0000 (+0000) Subject: Escaping and formatNum X-Git-Tag: 1.31.0-rc.0~41498 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=04eda55202c7f2db61cacae950dfba6bb36f27e7;p=lhc%2Fweb%2Fwiklou.git Escaping and formatNum --- diff --git a/includes/specials/SpecialTags.php b/includes/specials/SpecialTags.php index e4d1970410..d18b6e0735 100644 --- a/includes/specials/SpecialTags.php +++ b/includes/specials/SpecialTags.php @@ -49,20 +49,22 @@ class SpecialTags extends SpecialPage { if ( in_array( $tag, $doneTags ) ) { return ''; } + + global $wgLang; $newRow = ''; $newRow .= Xml::tags( 'td', null, Xml::element( 'tt', null, $tag ) ); $disp = ChangeTags::tagDescription( $tag ); - $disp .= ' (' . $sk->link( Title::makeTitle( NS_MEDIAWIKI, "Tag-$tag" ), wfMsg( 'tags-edit' ) ) . ')'; + $disp .= ' (' . $sk->link( Title::makeTitle( NS_MEDIAWIKI, "Tag-$tag" ), wfMsgHtml( 'tags-edit' ) ) . ')'; $newRow .= Xml::tags( 'td', null, $disp ); $desc = wfMsgExt( "tag-$tag-description", 'parseinline' ); $desc = wfEmptyMsg( "tag-$tag-description", $desc ) ? '' : $desc; - $desc .= ' (' . $sk->link( Title::makeTitle( NS_MEDIAWIKI, "Tag-$tag-description" ), wfMsg( 'tags-edit' ) ) . ')'; + $desc .= ' (' . $sk->link( Title::makeTitle( NS_MEDIAWIKI, "Tag-$tag-description" ), wfMsgHtml( 'tags-edit' ) ) . ')'; $newRow .= Xml::tags( 'td', null, $desc ); - $hitcount = wfMsgExt( 'tags-hitcount', array( 'parsemag' ), $hitcount ); + $hitcount = wfMsgExt( 'tags-hitcount', array( 'parsemag' ), $wgLang->formatNum( $hitcount ) ); $hitcount = $sk->link( SpecialPage::getTitleFor( 'Recentchanges' ), $hitcount, array(), array( 'tagfilter' => $tag ) ); $newRow .= Xml::tags( 'td', null, $hitcount );