diff --git a/extension.json b/extension.json index ceba5438..87ba8d37 100644 --- a/extension.json +++ b/extension.json @@ -85,10 +85,13 @@ "default": { "class": "MediaWiki\\Extension\\CategoryTree\\Hooks", "services": [ "DBLoadBalancer", "MainConfig" ] + }, + "config": { + "class": "MediaWiki\\Extension\\CategoryTree\\ConfigHookHandler" } }, "Hooks": { - "MediaWikiServices": "default", + "MediaWikiServices": "config", "ArticleFromTitle": "default", "SpecialTrackingCategories::preprocess": "default", "SpecialTrackingCategories::generateCatLink": "default", diff --git a/includes/ConfigHookHandler.php b/includes/ConfigHookHandler.php new file mode 100644 index 00000000..0c3c98a5 --- /dev/null +++ b/includes/ConfigHookHandler.php @@ -0,0 +1,62 @@ +