Paladox has uploaded a new change for review. https://gerrit.wikimedia.org/r/212415
Change subject: Improvements toe extension.json ...................................................................... Improvements toe extension.json 2d arrays not supported in extension registration Change-Id: Ib6f7175a3411564b5cf3e00d554d927d1c9a2a40 --- M CollapsibleVector.hooks.php M extension.json 2 files changed, 10 insertions(+), 6 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CollapsibleVector refs/changes/15/212415/1 diff --git a/CollapsibleVector.hooks.php b/CollapsibleVector.hooks.php index 179ff9a..521ec04 100644 --- a/CollapsibleVector.hooks.php +++ b/CollapsibleVector.hooks.php @@ -38,6 +38,14 @@ /* Static Methods */ + public static function onRegistration() { + global $wgVectorFeatures; + // Each module may be configured individually to be globally on/off or user preference based + $wgVectorFeatures = array( + 'collapsiblenav' => array( 'global' => false, 'user' => true ), + ); + } + /** * Checks if a certain option is enabled * diff --git a/extension.json b/extension.json index 607e15e..878bcbe 100644 --- a/extension.json +++ b/extension.json @@ -9,6 +9,7 @@ "namemsg": "extensionname-collapsiblevector", "license-name": "GPL-2.0+", "type": "other", + "callback": "CollapsibleVectorHooks::onRegistration", "DefaultUserOptions": { "vector-collapsiblenav": 1, "vector-noexperiments": 0 @@ -55,11 +56,6 @@ ] }, "config": { - "VectorFeatures": { - "collapsiblenav": { - "global": false, - "user": true - } - } + "@doc": "VectorFeatures is set in CollapsibleVector.hooks.php" } } -- To view, visit https://gerrit.wikimedia.org/r/212415 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib6f7175a3411564b5cf3e00d554d927d1c9a2a40 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CollapsibleVector Gerrit-Branch: REL1_25 Gerrit-Owner: Paladox <thomasmulhall...@yahoo.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits