Index: trunk/phase3/includes/specials/SpecialStatistics.php |
— | — | @@ -198,17 +198,17 @@ |
199 | 199 | continue; |
200 | 200 | } |
201 | 201 | $groupname = htmlspecialchars( $group ); |
202 | | - $msg = wfMsg( 'group-' . $groupname ); |
203 | | - if ( wfEmptyMsg( 'group-' . $groupname ) || $msg == '' ) { |
| 202 | + $msg = wfMessage( 'group-' . $groupname ); |
| 203 | + if ( $msg->isBlank() ) { |
204 | 204 | $groupnameLocalized = $groupname; |
205 | 205 | } else { |
206 | | - $groupnameLocalized = $msg; |
| 206 | + $groupnameLocalized = $msg->text(); |
207 | 207 | } |
208 | | - $msg = wfMsgForContent( 'grouppage-' . $groupname ); |
209 | | - if ( wfEmptyMsg( 'grouppage-' . $groupname ) || $msg == '' ) { |
| 208 | + $msg = wfMessage( 'grouppage-' . $groupname )->inContentLanguage(); |
| 209 | + if ( $msg->isBlank() ) { |
210 | 210 | $grouppageLocalized = MWNamespace::getCanonicalName( NS_PROJECT ) . ':' . $groupname; |
211 | 211 | } else { |
212 | | - $grouppageLocalized = $msg; |
| 212 | + $grouppageLocalized = $msg->text(); |
213 | 213 | } |
214 | 214 | $linkTarget = Title::newFromText( $grouppageLocalized ); |
215 | 215 | $grouppage = $sk->link( |