From a7f35df800a7ed989693bf2d75a99fdb5bdb538f Mon Sep 17 00:00:00 2001 From: DannyS712 Date: Sun, 1 Mar 2020 08:42:17 +0000 Subject: [PATCH] extension.json - don't use array for hooks with one handler Change-Id: Ic1ba01c4734a6235a38fb45db85b463d0d724e4d --- extension.json | 44 +++++++++++--------------------------------- 1 file changed, 11 insertions(+), 33 deletions(-) diff --git a/extension.json b/extension.json index 5a4f0e61..429e2b8d 100644 --- a/extension.json +++ b/extension.json @@ -83,39 +83,17 @@ "GadgetDefinitionDeletionUpdate": "includes/content/GadgetDefinitionDeletionUpdate.php" }, "Hooks": { - "PageContentSaveComplete": [ - "GadgetHooks::onPageContentSaveComplete" - ], - "BeforePageDisplay": [ - "GadgetHooks::beforePageDisplay" - ], - "CodeEditorGetPageLanguage": [ - "GadgetHooks::onCodeEditorGetPageLanguage" - ], - "ContentHandlerDefaultModelFor": [ - "GadgetHooks::onContentHandlerDefaultModelFor" - ], - "EditFilterMergedContent": [ - "GadgetHooks::onEditFilterMergedContent" - ], - "PageContentInsertComplete": [ - "GadgetHooks::onPageContentInsertComplete" - ], - "UserGetDefaultOptions": [ - "GadgetHooks::userGetDefaultOptions" - ], - "GetPreferences": [ - "GadgetHooks::getPreferences" - ], - "ResourceLoaderRegisterModules": [ - "GadgetHooks::registerModules" - ], - "wgQueryPages": [ - "GadgetHooks::onwgQueryPages" - ], - "DeleteUnknownPreferences": [ - "GadgetHooks::onDeleteUnknownPreferences" - ] + "PageContentSaveComplete": "GadgetHooks::onPageContentSaveComplete", + "BeforePageDisplay": "GadgetHooks::beforePageDisplay", + "CodeEditorGetPageLanguage": "GadgetHooks::onCodeEditorGetPageLanguage", + "ContentHandlerDefaultModelFor": "GadgetHooks::onContentHandlerDefaultModelFor", + "EditFilterMergedContent": "GadgetHooks::onEditFilterMergedContent", + "PageContentInsertComplete": "GadgetHooks::onPageContentInsertComplete", + "UserGetDefaultOptions": "GadgetHooks::userGetDefaultOptions", + "GetPreferences": "GadgetHooks::getPreferences", + "ResourceLoaderRegisterModules": "GadgetHooks::registerModules", + "wgQueryPages": "GadgetHooks::onwgQueryPages", + "DeleteUnknownPreferences": "GadgetHooks::onDeleteUnknownPreferences" }, "config": { "GadgetsRepoClass": "MediaWikiGadgetsDefinitionRepo",