mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-24 00:05:00 +00:00
Use MediaWikiServices::getRepoGroup
This required MediaWiki 1.34 Change-Id: Ie7186b0729b54ef9a52b18bb6a2a2696dca6daed
This commit is contained in:
parent
92587641dc
commit
724c38c892
|
@ -10,7 +10,7 @@
|
|||
"license-name": "GPL-2.0-or-later AND MIT",
|
||||
"type": "parserhook",
|
||||
"requires": {
|
||||
"MediaWiki": ">=1.32.0"
|
||||
"MediaWiki": ">=1.34.0"
|
||||
},
|
||||
"APIModules": {
|
||||
"scribunto-console": "ApiScribuntoConsole"
|
||||
|
|
|
@ -328,7 +328,7 @@ class Scribunto_LuaTitleLibrary extends Scribunto_LuaLibraryBase {
|
|||
}
|
||||
|
||||
$this->incrementExpensiveFunctionCount();
|
||||
$file = wfFindFile( $title );
|
||||
$file = MediaWikiServices::getInstance()->getRepoGroup()->findFile( $title );
|
||||
if ( !$file ) {
|
||||
return [ [ 'exists' => false ] ];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue