mediawiki-extensions-ImageMap/ImageMap.php
Siebrand Mazeland f2601b987c Maintenance for ImageMap extension.
* Replace deprecated methods.
* Consistency fixes for error messages and update doc.
* Use __DIR__ instead of dirname( __FILE__ ).
* Update code formatting.
* Correct doc for ImageMap::error().

Change-Id: Ia528deaa6b13136b0379f8dbca7d3b0029f06880
2012-08-30 18:12:52 +02:00

24 lines
654 B
PHP

<?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;
}