From 53298e9043e566974532e58dd4c6f226b56ea078 Mon Sep 17 00:00:00 2001 From: Isarra Date: Sun, 24 May 2015 15:37:38 +0000 Subject: [PATCH] Add extension.json and empty PHP entry point Also remove i18n shim. Change-Id: I4c52985dde986ced808e60ee1f36d7e6ce413210 --- Editcount.i18n.php | 35 ----------------------------------- Editcount.php | 29 ++++++++++++----------------- extension.json | 23 +++++++++++++++++++++++ 3 files changed, 35 insertions(+), 52 deletions(-) delete mode 100644 Editcount.i18n.php create mode 100644 extension.json diff --git a/Editcount.i18n.php b/Editcount.i18n.php deleted file mode 100644 index 07160e7..0000000 --- a/Editcount.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ - __FILE__, - 'name' => 'Editcount', - 'author' => 'Ævar Arnfjörð Bjarmason', - 'descriptionmsg' => 'editcount-desc', - 'url' => 'https://www.mediawiki.org/wiki/Extension:Editcount', -); - -$wgMessagesDirs['Editcount'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['Editcount'] = __DIR__ . '/Editcount.i18n.php'; -$wgExtensionMessagesFiles['EditcountAliases'] = __DIR__ . '/Editcount.alias.php'; -$wgAutoloadClasses['Editcount'] = __DIR__ . '/Editcount_body.php'; -$wgAutoloadClasses['EditcountHTML'] = __DIR__ . '/Editcount_body.php'; -$wgSpecialPages['Editcount'] = 'Editcount'; diff --git a/extension.json b/extension.json new file mode 100644 index 0000000..443fa48 --- /dev/null +++ b/extension.json @@ -0,0 +1,23 @@ +{ + "name": "Editcount", + "author": "Ævar Arnfjörð Bjarmason", + "url": "https://www.mediawiki.org/wiki/Extension:Editcount", + "descriptionmsg": "editcount-desc", + "type": "specialpage", + "SpecialPages": { + "Editcount": "Editcount" + }, + "MessagesDirs": { + "Editcount": [ + "i18n" + ] + }, + "ExtensionMessagesFiles": { + "EditcountAliases": "Editcount.alias.php" + }, + "AutoloadClasses": { + "Editcount": "Editcount_body.php", + "EditcountHTML": "Editcount_body.php" + }, + "manifest_version": 1 +}