From 7fddf90b8d6197295265d9ae9f637faa710badbd Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Sun, 26 Feb 2012 14:02:54 +0000 Subject: [PATCH] Use local context ( $this->msg() ) instead of global method wfMessage() per IAlex. Follows-up r112433. --- includes/specials/SpecialProtectedpages.php | 2 +- includes/specials/SpecialShortpages.php | 2 +- includes/specials/SpecialWhatlinkshere.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/specials/SpecialProtectedpages.php b/includes/specials/SpecialProtectedpages.php index fa45255a8f..c358deee69 100644 --- a/includes/specials/SpecialProtectedpages.php +++ b/includes/specials/SpecialProtectedpages.php @@ -137,7 +137,7 @@ class SpecialProtectedpages extends SpecialPage { ); } - $changeProtection = ' ' . wfMessage( 'parentheses' )->rawParams( $changeProtection )->escaped(); + $changeProtection = ' ' . $this->msg( 'parentheses' )->rawParams( $changeProtection )->escaped(); wfProfileOut( __METHOD__ ); diff --git a/includes/specials/SpecialShortpages.php b/includes/specials/SpecialShortpages.php index 5657b68988..7b06139f48 100644 --- a/includes/specials/SpecialShortpages.php +++ b/includes/specials/SpecialShortpages.php @@ -95,7 +95,7 @@ class ShortPagesPage extends QueryPage { : 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}]" diff --git a/includes/specials/SpecialWhatlinkshere.php b/includes/specials/SpecialWhatlinkshere.php index 4cff1ee02e..79c53e2484 100644 --- a/includes/specials/SpecialWhatlinkshere.php +++ b/includes/specials/SpecialWhatlinkshere.php @@ -316,12 +316,12 @@ class SpecialWhatLinksHere extends SpecialPage { $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" : -- 2.20.1