X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialWantedfiles.php;h=aa3a971d96eb5af8dc02f4b03c2f0da4c38f4729;hb=38d5d59a6617dfb6a4aa41ae6da8645a5e8a3c53;hp=2ebbc2d86c20627b7209f567a9ed4f5ecd3484e7;hpb=f739a8f368ab64d63a2f21d15caf2caa766d6fc5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialWantedfiles.php b/includes/specials/SpecialWantedfiles.php index 2ebbc2d86c..aa3a971d96 100644 --- a/includes/specials/SpecialWantedfiles.php +++ b/includes/specials/SpecialWantedfiles.php @@ -24,6 +24,8 @@ * @author Soxred93 */ +use MediaWiki\MediaWikiServices; + /** * Querypage that lists the most wanted files * @@ -97,14 +99,14 @@ class WantedFilesPage extends WantedQueryPage { /** * Does the file exist? * - * Use wfFindFile so we still think file namespace pages without - * files are missing, but valid file redirects and foreign files are ok. + * Use findFile() so we still think file namespace pages without files + * are missing, but valid file redirects and foreign files are ok. * * @param Title $title * @return bool */ protected function existenceCheck( Title $title ) { - return (bool)wfFindFile( $title ); + return (bool)MediaWikiServices::getInstance()->getRepoGroup()->findFile( $title ); } function getQueryInfo() {