Replace wfMessage() with this->msg()
authorrillke <rainerrillke@hotmail.com>
Wed, 26 Mar 2014 18:55:28 +0000 (19:55 +0100)
committerrillke <rainerrillke@hotmail.com>
Wed, 26 Mar 2014 19:04:44 +0000 (20:04 +0100)
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

includes/specials/SpecialListDuplicatedFiles.php

index 9401fca..c1dc158 100644 (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() );