Paladox has uploaded a new change for review.

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

Change subject: Converting to globals
......................................................................

Converting to globals

* This will add support for composer.

Change-Id: I2e9aff2a003a8e196bce6db548933ad7bd957d31
(cherry picked from commit 9d74ac237501f749c3262dcda310080e3402be97)
---
M CollapsibleVector.php
1 file changed, 13 insertions(+), 13 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CollapsibleVector 
refs/changes/16/175216/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',

-- 
To view, visit https://gerrit.wikimedia.org/r/175216
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: REL1_24
Gerrit-Owner: Paladox <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to