diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-08-12 09:28:15 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-08-12 09:28:15 +0200 |
commit | 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 (patch) | |
tree | 577a29fb579188d16003a209ce2a2e9c5b0aa2bd /extensions/ImageMap/ImageMap.php | |
parent | cacc939b34e315b85e2d72997811eb6677996cc1 (diff) |
Update to MediaWiki 1.21.1
Diffstat (limited to 'extensions/ImageMap/ImageMap.php')
-rw-r--r-- | extensions/ImageMap/ImageMap.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/extensions/ImageMap/ImageMap.php b/extensions/ImageMap/ImageMap.php new file mode 100644 index 00000000..aa4cfa0d --- /dev/null +++ b/extensions/ImageMap/ImageMap.php @@ -0,0 +1,23 @@ +<?php + +$dir = __DIR__ . '/'; +$wgExtensionMessagesFiles['ImageMap'] = $dir . 'ImageMap.i18n.php'; +$wgAutoloadClasses['ImageMap'] = $dir . 'ImageMap_body.php'; +$wgHooks['ParserFirstCallInit'][] = 'wfSetupImageMap'; + +$wgExtensionCredits['parserhook']['ImageMap'] = array( + 'path' => __FILE__, + 'name' => 'ImageMap', + 'author' => 'Tim Starling', + 'url' => 'https://www.mediawiki.org/wiki/Extension:ImageMap', + 'descriptionmsg' => 'imagemap_desc', +); + +/** + * @param $parser Parser + * @return bool + */ +function wfSetupImageMap( &$parser ) { + $parser->setHook( 'imagemap', array( 'ImageMap', 'render' ) ); + return true; +} |