Use local context ( $this->msg() ) instead of global method wfMessage() per IAlex...
authorSiebrand Mazeland <siebrand@users.mediawiki.org>
Sun, 26 Feb 2012 14:02:54 +0000 (14:02 +0000)
committerSiebrand Mazeland <siebrand@users.mediawiki.org>
Sun, 26 Feb 2012 14:02:54 +0000 (14:02 +0000)
includes/specials/SpecialProtectedpages.php
includes/specials/SpecialShortpages.php
includes/specials/SpecialWhatlinkshere.php

index fa45255..c358dee 100644 (file)
@@ -137,7 +137,7 @@ class SpecialProtectedpages extends SpecialPage {
                        );
                }
 
-               $changeProtection = ' ' . wfMessage( 'parentheses' )->rawParams( $changeProtection )->escaped();
+               $changeProtection = ' ' . $this->msg( 'parentheses' )->rawParams( $changeProtection )->escaped();
 
                wfProfileOut( __METHOD__ );
 
index 5657b68..7b06139 100644 (file)
@@ -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}]"
index 4cff1ee..79c53e2 100644 (file)
@@ -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" :