From f9214d96c77401939c78a98aae170925ee4c73db Mon Sep 17 00:00:00 2001 From: lens0021 Date: Fri, 1 Mar 2024 14:43:39 +0900 Subject: [PATCH] Replace deprecated ParserOutput::getCategories() --- includes/Hooks/RecursiveCategory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Hooks/RecursiveCategory.php b/includes/Hooks/RecursiveCategory.php index 8dbdc30..7662326 100644 --- a/includes/Hooks/RecursiveCategory.php +++ b/includes/Hooks/RecursiveCategory.php @@ -61,7 +61,7 @@ public function onCategoryAfterPageAdded( $category, $wikiPage ) { * @inheritDoc */ public function onContentAlterParserOutput( $content, $title, $parserOutput ) { - $cats = array_keys( $parserOutput->getCategories() ); + $cats = array_keys( $parserOutput->getCategoryNames() ); if ( !$cats ) { return; }