Paladox has uploaded a new change for review.
https://gerrit.wikimedia.org/r/175215
Change subject: Converting to globals
......................................................................
Converting to globals
* This will add support for composer.
Change-Id: I2e9aff2a003a8e196bce6db548933ad7bd957d31
---
M CollapsibleVector.php
M composer.json
2 files changed, 14 insertions(+), 14 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CollapsibleVector
refs/changes/15/175215/1
diff --git a/CollapsibleVector.php b/CollapsibleVector.php
index a39fa07..09c60d3 100644
--- a/CollapsibleVector.php
+++ b/CollapsibleVector.php
@@ -20,18 +20,18 @@
/* Configuration */
// Each module may be configured individually to be globally on/off or user
preference based
-$wgVectorFeatures = array(
+$GLOBALS['wgVectorFeatures'] = array(
'collapsiblenav' => array( 'global' => true, 'user' => true ),
);
// Enable bucket testing for new version of collapsible nav
-$wgCollapsibleNavBucketTest = false;
+$GLOBALS['wgCollapsibleNavBucketTest'] = false;
// Force the new version
-$wgCollapsibleNavForceNewVersion = false;
+$GLOBALS['wgCollapsibleNavForceNewVersion'] = false;
/* Setup */
-$wgExtensionCredits['other'][] = array(
+$GLOBALS['wgExtensionCredits']['other'][] = array(
'path' => __FILE__,
'name' => 'CollapsibleVector',
'author' => array( 'paladox' ),
@@ -39,20 +39,20 @@
'url' => 'https://www.mediawiki.org/wiki/Extension:CollapsibleVector',
'descriptionmsg' => 'collapsiblevector-desc',
);
-$wgAutoloadClasses['VectorHooks'] = __DIR__ . '/CollapsibleVector.hooks.php';
-$wgExtensionMessagesFiles['CollapsibleVector'] = __DIR__ .
'/CollapsibleVector.i18n.php';
-$wgMessagesDirs['CollapsibleVector'] = __DIR__ . '/i18n';
-$wgHooks['BeforePageDisplay'][] = 'VectorHooks::beforePageDisplay';
-$wgHooks['GetPreferences'][] = 'VectorHooks::getPreferences';
-$wgHooks['ResourceLoaderGetConfigVars'][] =
'VectorHooks::resourceLoaderGetConfigVars';
-$wgHooks['MakeGlobalVariablesScript'][] =
'VectorHooks::makeGlobalVariablesScript';
+$GLOBALS['wgAutoloadClasses']['VectorHooks'] = __DIR__ .
'/CollapsibleVector.hooks.php';
+$GLOBALS['wgExtensionMessagesFiles']['CollapsibleVector'] = __DIR__ .
'/CollapsibleVector.i18n.php';
+$GLOBALS['wgMessagesDirs']['CollapsibleVector'] = __DIR__ . '/i18n';
+$GLOBALS['wgHooks']['BeforePageDisplay'][] = 'VectorHooks::beforePageDisplay';
+$GLOBALS['wgHooks']['GetPreferences'][] = 'VectorHooks::getPreferences';
+$GLOBALS['wgHooks']['ResourceLoaderGetConfigVars'][] =
'VectorHooks::resourceLoaderGetConfigVars';
+$GLOBALS['wgHooks']['MakeGlobalVariablesScript'][] =
'VectorHooks::makeGlobalVariablesScript';
-$vectorResourceTemplate = array(
+$GLOBALS['vectorResourceTemplate'] = array(
'localBasePath' => __DIR__ . '/modules',
'remoteExtPath' => 'CollapsibleVector/modules',
'group' => 'ext.vector',
);
-$wgResourceModules += array(
+$GLOBALS['wgResourceModules'] += array(
// TODO this module should be merged with ext.vector.collapsibleTabs
'ext.vector.collapsibleNav' => $vectorResourceTemplate + array(
'scripts' => 'ext.vector.collapsibleNav.js',
diff --git a/composer.json b/composer.json
index a78f822..213575d 100644
--- a/composer.json
+++ b/composer.json
@@ -1,5 +1,5 @@
{
- "name": "mediawiki/collapsiblevector",
+ "name": "mediawiki/collapsible-vector",
"type": "mediawiki-extension",
"description": "Improves on the user interface elements of the
Vector skin",
"homepage":
"http://www.mediawiki.org/wiki/Extension:CollapsibleVector",
--
To view, visit https://gerrit.wikimedia.org/r/175215
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2e9aff2a003a8e196bce6db548933ad7bd957d31
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CollapsibleVector
Gerrit-Branch: master
Gerrit-Owner: Paladox <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits