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
$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() );