Index: trunk/phase3/includes/specials/SpecialStatistics.php |
— | — | @@ -120,7 +120,7 @@ |
121 | 121 | private function getPageStats() { |
122 | 122 | global $wgLang; |
123 | 123 | return Xml::openElement( 'tr' ) . |
124 | | - Xml::tags( 'th', array( 'colspan' => '2' ), wfMsg( 'statistics-header-pages' ) ) . |
| 124 | + Xml::tags( 'th', array( 'colspan' => '2' ), wfMsgExt( 'statistics-header-pages', array( 'parseinline' ) ) ) . |
125 | 125 | Xml::closeElement( 'tr' ) . |
126 | 126 | $this->formatRow( wfMsgExt( 'statistics-articles', array( 'parseinline' ) ), |
127 | 127 | $wgLang->formatNum( $this->good ), |
— | — | @@ -136,7 +136,7 @@ |
137 | 137 | private function getEditStats() { |
138 | 138 | global $wgLang; |
139 | 139 | return Xml::openElement( 'tr' ) . |
140 | | - Xml::tags( 'th', array( 'colspan' => '2' ), wfMsg( 'statistics-header-edits' ) ) . |
| 140 | + Xml::tags( 'th', array( 'colspan' => '2' ), wfMsgExt( 'statistics-header-edits', array( 'parseinline' ) ) ) . |
141 | 141 | Xml::closeElement( 'tr' ) . |
142 | 142 | $this->formatRow( wfMsgExt( 'statistics-edits', array( 'parseinline' ) ), |
143 | 143 | $wgLang->formatNum( $this->edits ), |
— | — | @@ -151,7 +151,7 @@ |
152 | 152 | private function getUserStats() { |
153 | 153 | global $wgLang, $wgRCMaxAge; |
154 | 154 | return Xml::openElement( 'tr' ) . |
155 | | - Xml::tags( 'th', array( 'colspan' => '2' ), wfMsg( 'statistics-header-users' ) ) . |
| 155 | + Xml::tags( 'th', array( 'colspan' => '2' ), wfMsgExt( 'statistics-header-users', array( 'parseinline' ) ) ) . |
156 | 156 | Xml::closeElement( 'tr' ) . |
157 | 157 | $this->formatRow( wfMsgExt( 'statistics-users', array( 'parseinline' ) ), |
158 | 158 | $wgLang->formatNum( $this->users ), |
— | — | @@ -184,7 +184,7 @@ |
185 | 185 | } else { |
186 | 186 | $grouppageLocalized = $msg; |
187 | 187 | } |
188 | | - $grouppage = $sk->makeLink( $grouppageLocalized, $groupnameLocalized ); |
| 188 | + $grouppage = $sk->makeLink( $grouppageLocalized, htmlspecialchars( $groupnameLocalized ) ); |
189 | 189 | $grouplink = $sk->link( SpecialPage::getTitleFor( 'Listusers' ), |
190 | 190 | wfMsgHtml( 'listgrouprights-members' ), |
191 | 191 | array(), |
— | — | @@ -205,7 +205,7 @@ |
206 | 206 | private function getViewsStats() { |
207 | 207 | global $wgLang; |
208 | 208 | return Xml::openElement( 'tr' ) . |
209 | | - Xml::tags( 'th', array( 'colspan' => '2' ), wfMsg( 'statistics-header-views' ) ) . |
| 209 | + Xml::tags( 'th', array( 'colspan' => '2' ), wfMsgExt( 'statistics-header-views', array( 'parseinline' ) ) ) . |
210 | 210 | Xml::closeElement( 'tr' ) . |
211 | 211 | $this->formatRow( wfMsgExt( 'statistics-views-total', array( 'parseinline' ) ), |
212 | 212 | $wgLang->formatNum( $this->views ), |
— | — | @@ -238,7 +238,7 @@ |
239 | 239 | ) |
240 | 240 | ); |
241 | 241 | if( $res->numRows() > 0 ) { |
242 | | - $text .= Xml::tags( 'th', array( 'colspan' => '2' ), wfMsg( 'statistics-mostpopular' ) ); |
| 242 | + $text .= Xml::tags( 'th', array( 'colspan' => '2' ), wfMsgExt( 'statistics-mostpopular', array( 'parseinline' ) ) ); |
243 | 243 | while( $row = $res->fetchObject() ) { |
244 | 244 | $title = Title::makeTitleSafe( $row->page_namespace, $row->page_title ); |
245 | 245 | if( $title instanceof Title ) { |