Use MediaWikiServices::getRepoGroup

This required MediaWiki 1.34

Change-Id: I1578dffaa20d80696378827397a0593d1c634477
This commit is contained in:
Umherirrender 2020-03-14 14:45:29 +01:00
parent 5996ce45c7
commit 2c97d15088
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@
"license-name": "GPL-2.0-or-later",
"type": "parserhook",
"requires": {
"MediaWiki": ">= 1.32.0"
"MediaWiki": ">= 1.34.0"
},
"config": {
"PFEnableStringFunctions": false,

View file

@ -349,7 +349,7 @@ class ParserFunctions {
if ( !$parser->incrementExpensiveFunctionCount() ) {
return $else;
}
$file = wfFindFile( $title );
$file = MediaWikiServices::getInstance()->getRepoGroup()->findFile( $title );
if ( !$file ) {
return $else;
}