From: Alexandre Emsenhuber Date: Sun, 21 Dec 2008 18:35:27 +0000 (+0000) Subject: html -> wikitext in table headers X-Git-Tag: 1.31.0-rc.0~43849 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=5ab1e494b841a378147eb3cb1a8cba699a82e739;p=lhc%2Fweb%2Fwiklou.git html -> wikitext in table headers --- diff --git a/includes/specials/SpecialStatistics.php b/includes/specials/SpecialStatistics.php index 1c8a0141af..414f7bee47 100644 --- a/includes/specials/SpecialStatistics.php +++ b/includes/specials/SpecialStatistics.php @@ -120,7 +120,7 @@ class SpecialStatistics extends SpecialPage { private function getPageStats() { global $wgLang; return Xml::openElement( 'tr' ) . - Xml::tags( 'th', array( 'colspan' => '2' ), wfMsg( 'statistics-header-pages' ) ) . + Xml::tags( 'th', array( 'colspan' => '2' ), wfMsgExt( 'statistics-header-pages', array( 'parseinline' ) ) ) . Xml::closeElement( 'tr' ) . $this->formatRow( wfMsgExt( 'statistics-articles', array( 'parseinline' ) ), $wgLang->formatNum( $this->good ), @@ -136,7 +136,7 @@ class SpecialStatistics extends SpecialPage { private function getEditStats() { global $wgLang; return Xml::openElement( 'tr' ) . - Xml::tags( 'th', array( 'colspan' => '2' ), wfMsg( 'statistics-header-edits' ) ) . + Xml::tags( 'th', array( 'colspan' => '2' ), wfMsgExt( 'statistics-header-edits', array( 'parseinline' ) ) ) . Xml::closeElement( 'tr' ) . $this->formatRow( wfMsgExt( 'statistics-edits', array( 'parseinline' ) ), $wgLang->formatNum( $this->edits ), @@ -151,7 +151,7 @@ class SpecialStatistics extends SpecialPage { private function getUserStats() { global $wgLang, $wgRCMaxAge; return Xml::openElement( 'tr' ) . - Xml::tags( 'th', array( 'colspan' => '2' ), wfMsg( 'statistics-header-users' ) ) . + Xml::tags( 'th', array( 'colspan' => '2' ), wfMsgExt( 'statistics-header-users', array( 'parseinline' ) ) ) . Xml::closeElement( 'tr' ) . $this->formatRow( wfMsgExt( 'statistics-users', array( 'parseinline' ) ), $wgLang->formatNum( $this->users ), @@ -184,7 +184,7 @@ class SpecialStatistics extends SpecialPage { } else { $grouppageLocalized = $msg; } - $grouppage = $sk->makeLink( $grouppageLocalized, $groupnameLocalized ); + $grouppage = $sk->makeLink( $grouppageLocalized, htmlspecialchars( $groupnameLocalized ) ); $grouplink = $sk->link( SpecialPage::getTitleFor( 'Listusers' ), wfMsgHtml( 'listgrouprights-members' ), array(), @@ -205,7 +205,7 @@ class SpecialStatistics extends SpecialPage { private function getViewsStats() { global $wgLang; return Xml::openElement( 'tr' ) . - Xml::tags( 'th', array( 'colspan' => '2' ), wfMsg( 'statistics-header-views' ) ) . + Xml::tags( 'th', array( 'colspan' => '2' ), wfMsgExt( 'statistics-header-views', array( 'parseinline' ) ) ) . Xml::closeElement( 'tr' ) . $this->formatRow( wfMsgExt( 'statistics-views-total', array( 'parseinline' ) ), $wgLang->formatNum( $this->views ), @@ -238,7 +238,7 @@ class SpecialStatistics extends SpecialPage { ) ); if( $res->numRows() > 0 ) { - $text .= Xml::tags( 'th', array( 'colspan' => '2' ), wfMsg( 'statistics-mostpopular' ) ); + $text .= Xml::tags( 'th', array( 'colspan' => '2' ), wfMsgExt( 'statistics-mostpopular', array( 'parseinline' ) ) ); while( $row = $res->fetchObject() ) { $title = Title::makeTitleSafe( $row->page_namespace, $row->page_title ); if( $title instanceof Title ) {