From 4699d68b37fa7e08d79e31dc4a17910f23c830b9 Mon Sep 17 00:00:00 2001 From: Bryan Davis Date: Sat, 1 Aug 2015 20:36:13 -0600 Subject: [PATCH] Remove extension.json The complex structure of $wgContactConfig cannot be properly managed until I64cb055 is merged. Change-Id: I68853dc282330e595cc30ae56fc97859304e0573 --- Gruntfile.js | 7 +++++-- extension.json | 51 -------------------------------------------------- 2 files changed, 5 insertions(+), 53 deletions(-) delete mode 100644 extension.json diff --git a/Gruntfile.js b/Gruntfile.js index 7cf7a22..f5941c4 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -9,9 +9,12 @@ module.exports = function ( grunt ) { grunt.loadNpmTasks( 'grunt-banana-checker' ); grunt.loadNpmTasks( 'grunt-jsonlint' ); - var conf = grunt.file.readJSON( 'extension.json' ); grunt.initConfig( { - banana: conf.MessagesDirs, + banana: { + "ContactPage": [ + "i18n" + ] + }, jsonlint: { all: [ '**/*.json', diff --git a/extension.json b/extension.json deleted file mode 100644 index 809068a..0000000 --- a/extension.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "name": "ContactPage", - "version": "2.2", - "author": [ - "Daniel Kinzler", - "Sam Reed" - ], - "url": "https://www.mediawiki.org/wiki/Extension:ContactPage", - "descriptionmsg": "contactpage-desc", - "license-name": "GPL-2.0+", - "type": "specialpage", - "ExtensionMessagesFiles": { - "ContactPageAliases": "ContactPage.alias.php" - }, - "MessagesDirs": { - "ContactPage": [ - "i18n" - ] - }, - "config": { - "ContactConfig": { - "default": { - "RecipientUser": null, - "SenderEmail": null, - "SenderName": null, - "RequireDetails": false, - "IncludeIP": false, - "DisplayFormat": "table", - "RLModules": [], - "RLStyleModules": [], - "AdditionalFields": { - "Text": { - "label-message": "emailmessage", - "type": "textarea", - "rows": 20, - "cols": 80, - "required": true - } - } - } - } - }, - "callback": "SpecialContact::onRegistration", - "SpecialPages": { - "Contact": "SpecialContact" - }, - "AutoloadClasses": { - "SpecialContact": "ContactPage_body.php" - }, - "manifest_version": 1 -}