r110650 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110649‎ | r110650 | r110651 >
Date:11:19, 3 February 2012
Author:ialex
Status:ok
Tags:
Comment:
Use local context to get message instead of relying on global variables
Modified paths:
  • /trunk/phase3/includes/specials/SpecialWantedcategories.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialWantedcategories.php
@@ -69,9 +69,7 @@
7070 array( 'broken' )
7171 );
7272
73 - $lang = $this->getLanguage();
74 - $nlinks = wfMsgExt( 'nmembers', array( 'parsemag', 'escape' ),
75 - $lang->formatNum( $result->value ) );
76 - return $lang->specialList( $plink, $nlinks );
 73+ $nlinks = $this->msg( 'nmembers' )->numParams( $result->value )->escaped();
 74+ return $this->getLanguage()->specialList( $plink, $nlinks );
7775 }
7876 }

Status & tagging log