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": {
"ParserFirstCallInit": "PortableInfoboxParserTagController::parserTagInit",
"BeforeParserrenderImageGallery": "PortableInfoboxHooks::onBeforeParserrenderImageGallery",
"AfterParserFetchFileAndTitle": "PortableInfoboxHooks::onAfterParserFetchFileAndTitle",
"wgQueryPages": "PortableInfoboxHooks::onWgQueryPages",
"AllInfoboxesQueryRecached": "PortableInfoboxHooks::onAllInfoboxesQueryRecached",
"ArticlePurge": "PortableInfoboxHooks::onArticlePurge",

View file

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