r106827 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106826‎ | r106827 | r106828 >
Date:18:07, 20 December 2011
Author:ialex
Status:ok
Tags:
Comment:
Use local context to get messages
Modified paths:
  • /trunk/phase3/includes/specials/SpecialDisambiguations.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialDisambiguations.php
@@ -36,12 +36,12 @@
3737 function isSyndicated() { return false; }
3838
3939 function getPageHeader() {
40 - return wfMsgExt( 'disambiguations-text', array( 'parse' ) );
 40+ return $this->msg( 'disambiguations-text' )->parseAsBlock();
4141 }
4242
4343 function getQueryInfo() {
4444 $dbr = wfGetDB( DB_SLAVE );
45 - $dMsgText = wfMsgForContent( 'disambiguationspage' );
 45+ $dMsgText = $this->msg( 'disambiguationspage' )->inContentLanguage()->text();
4646 $linkBatch = new LinkBatch;
4747
4848 # If the text can be treated as a title, use it verbatim.
@@ -126,7 +126,7 @@
127127 $dp = Title::makeTitle( $result->namespace, $result->title );
128128
129129 $from = Linker::link( $title );
130 - $edit = Linker::link( $title, wfMsgExt( 'parentheses', array( 'escape' ), wfMsg( 'editlink' ) ) ,
 130+ $edit = Linker::link( $title, $this->msg( 'parentheses', $this->msg( 'editlink' )->text() )->escaped(),
131131 array(), array( 'redirect' => 'no', 'action' => 'edit' ) );
132132 $arr = $this->getLanguage()->getArrow();
133133 $to = Linker::link( $dp );

Status & tagging log