]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blobdiff - includes/specials/SpecialTags.php
MediaWiki 1.16.0
[autoinstalls/mediawiki.git] / includes / specials / SpecialTags.php
index 981eb2ffc955dbc4059faca851b7f0f6233bd98b..57feeae7a3cc99c04749941de1fff6e217631212 100644 (file)
@@ -36,7 +36,7 @@ class SpecialTags extends SpecialPage {
                        $html .= $this->doTagRow( $tag, 0 );
                }
 
-               $wgOut->addHTML( Xml::tags( 'table', array( 'class' => 'mw-tags-table' ), $html ) );
+               $wgOut->addHTML( Xml::tags( 'table', array( 'class' => 'wikitable mw-tags-table' ), $html ) );
        }
 
        function doTagRow( $tag, $hitcount ) {
@@ -49,21 +49,23 @@ 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 = wfMsg( 'tags-hitcount', $hitcount );
-               $hitcount = $sk->link( SpecialPage::getTitleFor( 'RecentChanges' ), $hitcount, array(), array( 'tagfilter' => $tag ) );
+               $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 );
 
                $doneTags[] = $tag;