Replace deprecated BeforeParserrenderImageGallery (#75)

This commit is contained in:
Lens0021 2022-04-16 00:58:30 +09:00 committed by GitHub
parent 323ce57065
commit f998d807a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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",

View file

@ -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