Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/181168
Change subject: Reorganize directory structure
......................................................................
Reorganize directory structure
* Move special pages to specials/
* Providers to providers/
* Stop using $dir
Change-Id: I57faabe851c8e5a9946008bb0a9a53a1420e95a5
---
M ExtensionDistributor.php
R providers/ExtDistProvider.php
R providers/GerritExtDistProvider.php
R providers/GithubExtDistProvider.php
R specials/SpecialBaseDistributor.php
R specials/SpecialExtensionDistributor.php
R specials/SpecialSkinDistributor.php
7 files changed, 9 insertions(+), 10 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ExtensionDistributor
refs/changes/68/181168/1
diff --git a/ExtensionDistributor.php b/ExtensionDistributor.php
index 81f0f58..2bd8106 100644
--- a/ExtensionDistributor.php
+++ b/ExtensionDistributor.php
@@ -58,25 +58,24 @@
/********************
* Registration
*/
-$dir = __DIR__ . '/';
// Internationlization files
$wgMessagesDirs['ExtensionDistributor'] = __DIR__ . '/i18n';
-$wgExtensionMessagesFiles['ExtensionDistributor'] = $dir .
'ExtensionDistributor.i18n.php';
-$wgExtensionMessagesFiles['ExtensionDistributorAliases'] = $dir .
'ExtensionDistributor.alias.php';
+$wgExtensionMessagesFiles['ExtensionDistributor'] = __DIR__ .
'/ExtensionDistributor.i18n.php';
+$wgExtensionMessagesFiles['ExtensionDistributorAliases'] = __DIR__ .
'/ExtensionDistributor.alias.php';
// Special page classes
$wgSpecialPages['ExtensionDistributor'] = 'SpecialExtensionDistributor';
$wgSpecialPages['SkinDistributor'] = 'SpecialSkinDistributor';
$wgSpecialPageGroups['ExtensionDistributor'] = 'developer';
$wgSpecialPageGroups['SkinDistributor'] = 'developer';
-$wgAutoloadClasses['SpecialBaseDistributor'] = $dir .
'SpecialBaseDistributor.php';
-$wgAutoloadClasses['SpecialExtensionDistributor'] = $dir .
'SpecialExtensionDistributor.php';
-$wgAutoloadClasses['SpecialSkinDistributor'] = $dir .
'SpecialSkinDistributor.php';
-$wgAutoloadClasses['ExtDistProvider'] = $dir . 'ExtDistProvider.php';
-$wgAutoloadClasses['GerritExtDistProvider'] = $dir .
'GerritExtDistProvider.php';
-$wgAutoloadClasses['GithubExtDistProvider'] = $dir .
'GithubExtDistProvider.php';
-$wgAutoloadClasses['ApiListExtDistRepos'] = $dir .
'api/ApiListExtDistRepos.php';
+$wgAutoloadClasses['SpecialBaseDistributor'] = __DIR__ .
'/specials/SpecialBaseDistributor.php';
+$wgAutoloadClasses['SpecialExtensionDistributor'] = __DIR__ .
'/specials/SpecialExtensionDistributor.php';
+$wgAutoloadClasses['SpecialSkinDistributor'] = __DIR__ .
'/specials/SpecialSkinDistributor.php';
+$wgAutoloadClasses['ExtDistProvider'] = __DIR__ .
'/providers/ExtDistProvider.php';
+$wgAutoloadClasses['GerritExtDistProvider'] = __DIR__ .
'/providers/GerritExtDistProvider.php';
+$wgAutoloadClasses['GithubExtDistProvider'] = __DIR__ .
'/providers/GithubExtDistProvider.php';
+$wgAutoloadClasses['ApiListExtDistRepos'] = __DIR__ .
'/api/ApiListExtDistRepos.php';
$wgAPIListModules['extdistrepos'] = 'ApiListExtDistRepos';
$wgHooks['APIQuerySiteInfoGeneralInfo'][] = function( ApiQuerySiteInfo $api,
array &$data ) {
global $wgExtDistSnapshotRefs, $wgExtDistListFile;
diff --git a/ExtDistProvider.php b/providers/ExtDistProvider.php
similarity index 100%
rename from ExtDistProvider.php
rename to providers/ExtDistProvider.php
diff --git a/GerritExtDistProvider.php b/providers/GerritExtDistProvider.php
similarity index 100%
rename from GerritExtDistProvider.php
rename to providers/GerritExtDistProvider.php
diff --git a/GithubExtDistProvider.php b/providers/GithubExtDistProvider.php
similarity index 100%
rename from GithubExtDistProvider.php
rename to providers/GithubExtDistProvider.php
diff --git a/SpecialBaseDistributor.php b/specials/SpecialBaseDistributor.php
similarity index 100%
rename from SpecialBaseDistributor.php
rename to specials/SpecialBaseDistributor.php
diff --git a/SpecialExtensionDistributor.php
b/specials/SpecialExtensionDistributor.php
similarity index 100%
rename from SpecialExtensionDistributor.php
rename to specials/SpecialExtensionDistributor.php
diff --git a/SpecialSkinDistributor.php b/specials/SpecialSkinDistributor.php
similarity index 100%
rename from SpecialSkinDistributor.php
rename to specials/SpecialSkinDistributor.php
--
To view, visit https://gerrit.wikimedia.org/r/181168
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I57faabe851c8e5a9946008bb0a9a53a1420e95a5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ExtensionDistributor
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits