mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions
synced 2024-11-15 03:35:52 +00:00
Use MediaWikiServices::getRepoGroup
This required MediaWiki 1.34 Change-Id: I1578dffaa20d80696378827397a0593d1c634477
This commit is contained in:
parent
5996ce45c7
commit
2c97d15088
|
@ -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,
|
||||
|
|
|
@ -349,7 +349,7 @@ class ParserFunctions {
|
|||
if ( !$parser->incrementExpensiveFunctionCount() ) {
|
||||
return $else;
|
||||
}
|
||||
$file = wfFindFile( $title );
|
||||
$file = MediaWikiServices::getInstance()->getRepoGroup()->findFile( $title );
|
||||
if ( !$file ) {
|
||||
return $else;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue