Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

Commit

Permalink
Replace deprecated ParserOutput::getCategories()
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 committed Mar 1, 2024
1 parent e21506d commit f9214d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Hooks/RecursiveCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f9214d9

Please sign in to comment.