Replace wfMessage() with this->msg()

QueryPage inherits from SpecialPage and thus $this->msg() returns
a message with context set to the appropriate request context
(language and title).

Bug: 63110
Change-Id: Iaf9252e5a25eb618d7c1975fdb6e5ff96a50225b
This commit is contained in:
rillke 2014-03-26 19:55:28 +01:00
parent ac5eb9af92
commit 3dc4981dfb

View file

@ -98,7 +98,7 @@ class ListDuplicatedFilesPage extends QueryPage {
$image1 = Title::makeTitle( $result->namespace, $result->title );
$dupeSearch = SpecialPage::getTitleFor( 'FileDuplicateSearch', $image1->getDBKey() );
$msg = wfMessage( 'listduplicatedfiles-entry' )
$msg = $this->msg( 'listduplicatedfiles-entry' )
->params( $image1->getText() )
->numParams( $result->value - 1 )
->params( $dupeSearch->getPrefixedDBKey() );