SamanthaNguyen has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/354884 )
Change subject: Update to newer extension registration ...................................................................... Update to newer extension registration Merged list of extension authors from GlobalContribs as well a step forward for merging GlobalContribs into GlobalContributions. Bug: T154852 Change-Id: I8018e4bd1097867280ea656b9d37a2f3b8507264 --- D GlobalContributions.i18n.php D GlobalContributions.php A extension.json 3 files changed, 30 insertions(+), 76 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GlobalContributions refs/changes/84/354884/1 diff --git a/GlobalContributions.i18n.php b/GlobalContributions.i18n.php deleted file mode 100644 index c118849..0000000 --- a/GlobalContributions.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -<?php -/** - * This is a backwards-compatibility shim, generated by: - * https://git.wikimedia.org/blob/mediawiki%2Fcore.git/HEAD/maintenance%2FgenerateJsonI18n.php - * - * Beginning with MediaWiki 1.23, translation strings are stored in json files, - * and the EXTENSION.i18n.php file only exists to provide compatibility with - * older releases of MediaWiki. For more information about this migration, see: - * https://www.mediawiki.org/wiki/Requests_for_comment/Localisation_format - * - * This shim maintains compatibility back to MediaWiki 1.17. - */ -$messages = array(); -if ( !function_exists( 'wfJsonI18nShimafc1b7c22bda0ff6' ) ) { - function wfJsonI18nShimafc1b7c22bda0ff6( $cache, $code, &$cachedData ) { - $codeSequence = array_merge( array( $code ), $cachedData['fallbackSequence'] ); - foreach ( $codeSequence as $csCode ) { - $fileName = dirname( __FILE__ ) . "/i18n/$csCode.json"; - if ( is_readable( $fileName ) ) { - $data = FormatJson::decode( file_get_contents( $fileName ), true ); - foreach ( array_keys( $data ) as $key ) { - if ( $key === '' || $key[0] === '@' ) { - unset( $data[$key] ); - } - } - $cachedData['messages'] = array_merge( $data, $cachedData['messages'] ); - } - - $cachedData['deps'][] = new FileDependency( $fileName ); - } - return true; - } - - $GLOBALS['wgHooks']['LocalisationCacheRecache'][] = 'wfJsonI18nShimafc1b7c22bda0ff6'; -} diff --git a/GlobalContributions.php b/GlobalContributions.php deleted file mode 100644 index 91c2a10..0000000 --- a/GlobalContributions.php +++ /dev/null @@ -1,41 +0,0 @@ -<?php -/* - * Global user contributions extension - * Adds Special:GlobalContributions for viewing a user - * or IP address's contributions across a wiki farm - * - * Inspired by Luxo's tool aka GUC. - * - * @file - * @ingroup Extensions - * @author Kunal Mehta - * @license GPLv2 or higher - */ - -if ( !defined( 'MEDIAWIKI' ) ) { - exit; -} - -/* - * Wikis to search - * If empty, defaults to $wgLocalDatabases - * @var array of database names - */ -$wgGUCWikis = array(); - -$wgExtensionCredits['specialpage'][] = array( - 'path' => __FILE__, - 'name' => 'GlobalContributions', - 'author' => 'Kunal Mehta', - 'url' => 'https://www.mediawiki.org/wiki/Extension:GlobalContributions', - 'descriptionmsg' => 'guc-desc', - 'version' => '0.2.0', -); - -$wgAutoloadClasses['GlobalUserContribs'] = __DIR__ . '/GlobalContributions.body.php'; -$wgAutoloadClasses['SpecialGlobalContributions'] = __DIR__ . '/SpecialGlobalContributions.php'; - -$wgSpecialPages['GlobalContributions'] = 'SpecialGlobalContributions'; -$wgMessagesDirs['GlobalContributions'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['GlobalContributions'] = __DIR__ . '/GlobalContributions.i18n.php'; -$wgExtensionMessagesFiles['GlobalContributionsAlias'] = __DIR__ . '/GlobalContributions.alias.php'; diff --git a/extension.json b/extension.json new file mode 100644 index 0000000..c442687 --- /dev/null +++ b/extension.json @@ -0,0 +1,30 @@ +{ + "name": "GlobalContributions", + "version": "0.2.1", + "author": [ + "Kunal Mehta", + "Adam Carter", + "George Barnick", + "Jack Phoenix" + ], + "url": "https://www.mediawiki.org/wiki/Extension:GlobalContributions", + "descriptionmsg": "guc-desc", + "license-name": "GPL-2.0", + "type": "specialpage", + "AutoloadClasses": { + "GlobalUserContribs": "GlobalContributions.body.php", + "SpecialGlobalContributions": "SpecialGlobalContributions.php" + }, + "MessagesDirs": { + "GlobalContributions": [ + "i18n" + ] + }, + "ExtensionMessagesFiles": { + "GlobalContributionsAlias": "GlobalContribs.alias.php" + }, + "SpecialPages": { + "GlobalContributions": "SpecialGlobalContributions" + }, + "manifest_version": 1 +} -- To view, visit https://gerrit.wikimedia.org/r/354884 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8018e4bd1097867280ea656b9d37a2f3b8507264 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/GlobalContributions Gerrit-Branch: master Gerrit-Owner: SamanthaNguyen <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
