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