<?php
+
+use MediaWiki\MediaWikiServices;
+
/**
* Image gallery.
*
# Fetch and register the file (file title may be different via hooks)
list( $img, $nt ) = $this->mParser->fetchFileAndTitle( $nt, $options );
} else {
- $img = wfFindFile( $nt );
+ $img = MediaWikiServices::getInstance()->getRepoGroup()->findFile( $nt );
}
} else {
$img = false;