mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ImageMap
synced 2024-12-01 01:06:13 +00:00
f2601b987c
* 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
24 lines
654 B
PHP
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;
|
|
}
|