From 5cf8793bea3cb8500bc091395df13f85c14b568d Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 20 Dec 2011 18:07:19 +0000 Subject: [PATCH] Use local context to get messages --- includes/specials/SpecialDisambiguations.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/specials/SpecialDisambiguations.php b/includes/specials/SpecialDisambiguations.php index 8b7f66799c..2b05fb6b61 100644 --- a/includes/specials/SpecialDisambiguations.php +++ b/includes/specials/SpecialDisambiguations.php @@ -36,12 +36,12 @@ class DisambiguationsPage extends PageQueryPage { function isSyndicated() { return false; } function getPageHeader() { - return wfMsgExt( 'disambiguations-text', array( 'parse' ) ); + return $this->msg( 'disambiguations-text' )->parseAsBlock(); } function getQueryInfo() { $dbr = wfGetDB( DB_SLAVE ); - $dMsgText = wfMsgForContent( 'disambiguationspage' ); + $dMsgText = $this->msg( 'disambiguationspage' )->inContentLanguage()->text(); $linkBatch = new LinkBatch; # If the text can be treated as a title, use it verbatim. @@ -126,7 +126,7 @@ class DisambiguationsPage extends PageQueryPage { $dp = Title::makeTitle( $result->namespace, $result->title ); $from = Linker::link( $title ); - $edit = Linker::link( $title, wfMsgExt( 'parentheses', array( 'escape' ), wfMsg( 'editlink' ) ) , + $edit = Linker::link( $title, $this->msg( 'parentheses', $this->msg( 'editlink' )->text() )->escaped(), array(), array( 'redirect' => 'no', 'action' => 'edit' ) ); $arr = $this->getLanguage()->getArrow(); $to = Linker::link( $dp ); -- 2.20.1