https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112436
Revision: 112436
Author: siebrand
Date: 2012-02-26 14:02:54 +0000 (Sun, 26 Feb 2012)
Log Message:
-----------
Use local context ( $this->msg() ) instead of global method wfMessage() per
IAlex. Follows-up r112433.
Modified Paths:
--------------
trunk/phase3/includes/specials/SpecialProtectedpages.php
trunk/phase3/includes/specials/SpecialShortpages.php
trunk/phase3/includes/specials/SpecialWhatlinkshere.php
Modified: trunk/phase3/includes/specials/SpecialProtectedpages.php
===================================================================
--- trunk/phase3/includes/specials/SpecialProtectedpages.php 2012-02-26
13:43:28 UTC (rev 112435)
+++ trunk/phase3/includes/specials/SpecialProtectedpages.php 2012-02-26
14:02:54 UTC (rev 112436)
@@ -137,7 +137,7 @@
);
}
- $changeProtection = ' ' . wfMessage( 'parentheses'
)->rawParams( $changeProtection )->escaped();
+ $changeProtection = ' ' . $this->msg( 'parentheses'
)->rawParams( $changeProtection )->escaped();
wfProfileOut( __METHOD__ );
Modified: trunk/phase3/includes/specials/SpecialShortpages.php
===================================================================
--- trunk/phase3/includes/specials/SpecialShortpages.php 2012-02-26
13:43:28 UTC (rev 112435)
+++ trunk/phase3/includes/specials/SpecialShortpages.php 2012-02-26
14:02:54 UTC (rev 112436)
@@ -95,7 +95,7 @@
: Linker::linkKnown( $title );
$size = $this->msg( 'nbytes' )->numParams( $result->value
)->escaped();
- $hlinkInParentheses = wfMessage( 'parentheses' )->rawParams(
$hlink )->escaped();
+ $hlinkInParentheses = $this->msg( 'parentheses' )->rawParams(
$hlink )->escaped();
return $title->exists()
? "${hlinkInParentheses} {$dm}{$plink}
{$dm}[{$size}]"
Modified: trunk/phase3/includes/specials/SpecialWhatlinkshere.php
===================================================================
--- trunk/phase3/includes/specials/SpecialWhatlinkshere.php 2012-02-26
13:43:28 UTC (rev 112435)
+++ trunk/phase3/includes/specials/SpecialWhatlinkshere.php 2012-02-26
14:02:54 UTC (rev 112436)
@@ -316,12 +316,12 @@
$props[] = $msgcache['isimage'];
if ( count( $props ) ) {
- $propsText = wfMessage( 'parentheses' )->rawParams(
implode( $msgcache['semicolon-separator'], $props ) )->escaped();
+ $propsText = $this->msg( 'parentheses' )->rawParams(
implode( $msgcache['semicolon-separator'], $props ) )->escaped();
}
# Space for utilities links, with a what-links-here link
provided
$wlhLink = $this->wlhLink( $nt,
$msgcache['whatlinkshere-links'] );
- $wlh = Xml::wrapClass( wfMessage( 'parentheses' )->rawParams(
$wlhLink )->escaped(), 'mw-whatlinkshere-tools' );
+ $wlh = Xml::wrapClass( $this->msg( 'parentheses' )->rawParams(
$wlhLink )->escaped(), 'mw-whatlinkshere-tools' );
return $notClose ?
Xml::openElement( 'li' ) . "$link $propsText $dirmark
$wlh\n" :
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs