mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-13 18:36:54 +00:00
Replace deprecated BeforeParserrenderImageGallery (#75)
This commit is contained in:
parent
323ce57065
commit
f998d807a1
|
@ -115,7 +115,7 @@
|
|||
},
|
||||
"Hooks": {
|
||||
"ParserFirstCallInit": "PortableInfoboxParserTagController::parserTagInit",
|
||||
"BeforeParserrenderImageGallery": "PortableInfoboxHooks::onBeforeParserrenderImageGallery",
|
||||
"AfterParserFetchFileAndTitle": "PortableInfoboxHooks::onAfterParserFetchFileAndTitle",
|
||||
"wgQueryPages": "PortableInfoboxHooks::onWgQueryPages",
|
||||
"AllInfoboxesQueryRecached": "PortableInfoboxHooks::onAllInfoboxesQueryRecached",
|
||||
"ArticlePurge": "PortableInfoboxHooks::onArticlePurge",
|
||||
|
|
|
@ -12,8 +12,8 @@ class PortableInfoboxHooks {
|
|||
return true;
|
||||
}
|
||||
|
||||
public static function onBeforeParserrenderImageGallery(
|
||||
Parser &$parser, ImageGalleryBase &$gallery
|
||||
public static function onAfterParserFetchFileAndTitle(
|
||||
Parser $parser, ImageGalleryBase $gallery, string &$html
|
||||
) {
|
||||
PortableInfoboxDataBag::getInstance()->setGallery(
|
||||
// @phan-suppress-next-line PhanDeprecatedProperty
|
||||
|
|
Loading…
Reference in a new issue