mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-23 15:57:10 +00:00
Fix PageImages compatibility with MediaWiki 1.43+ (#136)
This commit is contained in:
parent
b0568a947a
commit
48c4ccdde1
|
@ -107,7 +107,19 @@ class MediaWikiParserService implements ExternalParser {
|
|||
if ( method_exists(
|
||||
ParserFileProcessingHookHandlers::class, 'onParserModifyImageHTML'
|
||||
) ) {
|
||||
if ( version_compare( MW_VERSION, '1.42', '>=' ) ) {
|
||||
if ( version_compare( MW_VERSION, '1.43', '>=' ) ) {
|
||||
// @phan-suppress-next-line PhanParamTooMany
|
||||
$handler = new ParserFileProcessingHookHandlers(
|
||||
$services->getMainConfig(),
|
||||
$repoGroup,
|
||||
$services->getMainWANObjectCache(),
|
||||
$services->getHttpRequestFactory(),
|
||||
// @phan-suppress-next-line PhanUndeclaredMethod
|
||||
$services->getConnectionProvider(),
|
||||
$services->getTitleFactory(),
|
||||
$services->getLinksMigration()
|
||||
);
|
||||
} elseif ( version_compare( MW_VERSION, '1.42', '>=' ) ) {
|
||||
// @phan-suppress-next-line PhanParamTooMany
|
||||
$handler = new ParserFileProcessingHookHandlers(
|
||||
$repoGroup,
|
||||
|
|
Loading…
Reference in a new issue