Paladox has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/212441

Change subject: Bump version
......................................................................

Bump version

Change-Id: If574776904ffba7697c6edde719642f0153b0149
---
M CollapsibleVector.hooks.php
M extension.json
2 files changed, 11 insertions(+), 7 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CollapsibleVector 
refs/changes/41/212441/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 22fbdf4..413c1af 100644
--- a/extension.json
+++ b/extension.json
@@ -1,6 +1,6 @@
 {
        "name": "CollapsibleVector",
-       "version": "0.1.8",
+       "version": "0.1.9",
        "author": [
                "Paladox"
        ],
@@ -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/212441
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If574776904ffba7697c6edde719642f0153b0149
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CollapsibleVector
Gerrit-Branch: master
Gerrit-Owner: Paladox <thomasmulhall...@yahoo.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to