*
* @ingroup SpecialPage
*/
-class FileDuplicateSearchPage extends QueryPage {
+class SpecialFileDuplicateSearch extends QueryPage {
protected $hash = '', $filename = '';
/**
$this->hash = '';
$title = Title::newFromText( $this->filename, NS_FILE );
if ( $title && $title->getText() != '' ) {
- $this->file = wfFindFile( $title );
+ $this->file = MediaWikiServices::getInstance()->getRepoGroup()->findFile( $title );
}
$out = $this->getOutput();