extension.json - don't use array for hooks with one handler

Change-Id: Ic1ba01c4734a6235a38fb45db85b463d0d724e4d
This commit is contained in:
DannyS712 2020-03-01 08:42:17 +00:00
parent 423062f33f
commit a7f35df800

View file

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