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" + ] +}