http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88563
Revision: 88563
Author: ialex
Date: 2011-05-22 08:41:24 +0000 (Sun, 22 May 2011)
Log Message:
-----------
Simplify a bit message existence checks, and also check existence of
grouppage-* messages in content language
Modified Paths:
--------------
trunk/phase3/includes/specials/SpecialStatistics.php
Modified: trunk/phase3/includes/specials/SpecialStatistics.php
===================================================================
--- trunk/phase3/includes/specials/SpecialStatistics.php 2011-05-22
08:33:34 UTC (rev 88562)
+++ trunk/phase3/includes/specials/SpecialStatistics.php 2011-05-22
08:41:24 UTC (rev 88563)
@@ -198,17 +198,17 @@
continue;
}
$groupname = htmlspecialchars( $group );
- $msg = wfMsg( 'group-' . $groupname );
- if ( wfEmptyMsg( 'group-' . $groupname ) || $msg == ''
) {
+ $msg = wfMessage( 'group-' . $groupname );
+ if ( $msg->isBlank() ) {
$groupnameLocalized = $groupname;
} else {
- $groupnameLocalized = $msg;
+ $groupnameLocalized = $msg->text();
}
- $msg = wfMsgForContent( 'grouppage-' . $groupname );
- if ( wfEmptyMsg( 'grouppage-' . $groupname ) || $msg ==
'' ) {
+ $msg = wfMessage( 'grouppage-' . $groupname
)->inContentLanguage();
+ if ( $msg->isBlank() ) {
$grouppageLocalized =
MWNamespace::getCanonicalName( NS_PROJECT ) . ':' . $groupname;
} else {
- $grouppageLocalized = $msg;
+ $grouppageLocalized = $msg->text();
}
$linkTarget = Title::newFromText( $grouppageLocalized );
$grouppage = $sk->link(
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs