mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-27 17:50:38 +00:00
Fix PageImages support for MediaWiki 1.38+ (#63)
This commit is contained in:
parent
fffbcaac5e
commit
c901aa9be1
|
@ -100,6 +100,17 @@ class MediaWikiParserService implements ExternalParser {
|
|||
ParserFileProcessingHookHandlers::onParserMakeImageParams(
|
||||
$title, $file, $params, $this->parser
|
||||
);
|
||||
} elseif ( method_exists(
|
||||
ParserFileProcessingHookHandlers::class, 'onParserModifyImageHTML'
|
||||
) ) {
|
||||
// 1.38+
|
||||
$params = [];
|
||||
$html = '';
|
||||
|
||||
// @phan-suppress-next-line PhanUndeclaredStaticMethod
|
||||
ParserFileProcessingHookHandlers::onParserModifyImageHTML(
|
||||
$this->parser, $file, $params, $html
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue