Mwjames has uploaded a new change for review. https://gerrit.wikimedia.org/r/152927
Change subject: Add composer.json ...................................................................... Add composer.json To prepare for the usage of `composer require mediawiki/vector-skin` Change-Id: I7fbdfcf03de9cb26f97687958d590bbb6fe9b38b --- M Vector.php A composer.json 2 files changed, 50 insertions(+), 10 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/Vector refs/changes/27/152927/1 diff --git a/Vector.php b/Vector.php index d16e8bb..1d84420 100644 --- a/Vector.php +++ b/Vector.php @@ -22,7 +22,7 @@ * @ingroup Skins */ -$wgExtensionCredits['skin'][] = array( +$GLOBALS['wgExtensionCredits']['skin'][] = array( 'path' => __FILE__, 'name' => 'Vector', 'namemsg' => 'skinname-vector', @@ -33,15 +33,15 @@ ); // Register files -$wgAutoloadClasses['SkinVector'] = __DIR__ . '/SkinVector.php'; -$wgAutoloadClasses['VectorTemplate'] = __DIR__ . '/VectorTemplate.php'; -$wgMessagesDirs['Vector'] = __DIR__ . '/i18n'; +$GLOBALS['wgAutoloadClasses']['SkinVector'] = __DIR__ . '/SkinVector.php'; +$GLOBALS['wgAutoloadClasses']['VectorTemplate'] = __DIR__ . '/VectorTemplate.php'; +$GLOBALS['wgMessagesDirs']['Vector'] = __DIR__ . '/i18n'; // Register skin -$wgValidSkinNames['vector'] = 'Vector'; +$GLOBALS['wgValidSkinNames']['vector'] = 'Vector'; // Register modules -$wgResourceModules['skins.vector.styles'] = array( +$GLOBALS['wgResourceModules']['skins.vector.styles'] = array( 'styles' => array( 'screen.less' => array( 'media' => 'screen' ), 'screen-hd.less' => array( 'media' => 'screen and (min-width: 982px)' ), @@ -49,7 +49,7 @@ 'remoteSkinPath' => 'Vector', 'localBasePath' => __DIR__, ); -$wgResourceModules['skins.vector.js'] = array( +$GLOBALS['wgResourceModules']['skins.vector.js'] = array( 'scripts' => array( 'collapsibleTabs.js', 'vector.js', @@ -64,7 +64,7 @@ ); // Apply module customizations -$wgResourceModuleSkinStyles['vector'] = array( +$GLOBALS['wgResourceModuleSkinStyles']['vector'] = array( 'jquery.tipsy' => 'skinStyles/jquery.tipsy.less', 'jquery.ui.core' => array( 'skinStyles/jquery.ui/jquery.ui.core.css', @@ -94,11 +94,11 @@ * - true = use an icon search button * - false = use Go & Search buttons */ -$wgVectorUseSimpleSearch = true; +$GLOBALS['wgVectorUseSimpleSearch'] = true; /** * Watch and unwatch as an icon rather than a link. * - true = use an icon watch/unwatch button * - false = use watch/unwatch text link */ -$wgVectorUseIconWatch = true; +$GLOBALS['wgVectorUseIconWatch'] = true; diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..b7fff8f --- /dev/null +++ b/composer.json @@ -0,0 +1,40 @@ +{ + "name" : "mediawiki/vector-skin", + "type" : "mediawiki-skin", + "description": "Modern version of the MonoBook skin", + "keywords" : [ + "wiki", + "MediaWiki", + "skin" + ], + "homepage" : "https://www.mediawiki.org/wiki/Skin:Vector", + "license" : "GPL-2.0+", + "authors" : [ + { + "name" : "Trevor Parscal" + }, + { + "name" : "Roan Kattouw" + } + ], + "support" : { + "wiki" : "https://www.mediawiki.org/wiki/Skin:Vector", + "forum" : "https://www.mediawiki.org/wiki/Skin_talk:Vector", + "source": "https://git.wikimedia.org/summary/mediawiki%2Fskins%2FVector", + "irc" : "irc://irc.freenode.org/mediawiki" + }, + "require" : { + "php" : ">=5.3.2", + "composer/installers": ">1.0.12" + }, + "autoload" : { + "files": [ + "Vector.php" + ] + }, + "extra" : { + "branch-alias": { + "dev-master": "1.x-dev" + } + } +} -- To view, visit https://gerrit.wikimedia.org/r/152927 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7fbdfcf03de9cb26f97687958d590bbb6fe9b38b Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/skins/Vector Gerrit-Branch: master Gerrit-Owner: Mwjames <jamesin.hongkon...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits