* @author Soxred93 <soxred93@gmail.com>
*/
+use MediaWiki\MediaWikiServices;
+
/**
* Querypage that lists the most wanted files
*
* In its own function to allow subclasses to override.
* @see SpecialWantedFilesGUOverride in GlobalUsage extension.
* @since 1.24
+ * @return bool
*/
protected function likelyToHaveFalsePositives() {
return RepoGroup::singleton()->hasForeignRepos();
/**
* 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() {