From: Alexandre Emsenhuber Date: Tue, 20 Dec 2011 18:07:19 +0000 (+0000) Subject: Use local context to get messages X-Git-Tag: 1.31.0-rc.0~25864 X-Git-Url: http://git.cyclocoop.org//%22%22._DIR_PLUGIN_FULLCALENDAR.%22prive/themes/spip/images/event_edit.png/%22?a=commitdiff_plain;h=5cf8793bea3cb8500bc091395df13f85c14b568d;p=lhc%2Fweb%2Fwiklou.git Use local context to get messages --- 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 );