From df4b7a8fac929b07e386ab3fecf6911b61663be0 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sat, 2 May 2015 23:35:33 -0700 Subject: [PATCH] Add extension.json, empty PHP entry point Depends upon I9a736a4c0ff73 in MediaWiki core Bug: T87929 Change-Id: I0ec2d98321b319b4e9e6222b867cc9958dbfe0cf --- ImageMap.php | 43 +++++++++++-------------------------------- extension.json | 23 +++++++++++++++++++++++ 2 files changed, 34 insertions(+), 32 deletions(-) create mode 100644 extension.json diff --git a/ImageMap.php b/ImageMap.php index 7b72884..71b9d9b 100644 --- a/ImageMap.php +++ b/ImageMap.php @@ -1,35 +1,14 @@ __FILE__, - 'name' => 'ImageMap', - 'author' => 'Tim Starling', - 'url' => 'https://www.mediawiki.org/wiki/Extension:ImageMap', - 'descriptionmsg' => 'imagemap_desc', - ); - - $GLOBALS['wgParserTestFiles'][] = $dir . 'imageMapParserTests.txt'; -} ); diff --git a/extension.json b/extension.json new file mode 100644 index 0000000..df8b316 --- /dev/null +++ b/extension.json @@ -0,0 +1,23 @@ +{ + "name": "ImageMap", + "author": "Tim Starling", + "url": "https://www.mediawiki.org/wiki/Extension:ImageMap", + "descriptionmsg": "imagemap_desc", + "type": "parserhook", + "MessagesDirs": { + "ImageMap": [ + "i18n" + ] + }, + "Hooks": { + "ParserFirstCallInit": [ + "ImageMap::onParserFirstCallInit" + ] + }, + "AutoloadClasses": { + "ImageMap": "ImageMap_body.php" + }, + "ParserTestFiles": [ + "imageMapParserTests.txt" + ] +}