mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ImageMap
synced 2024-12-01 01:06:13 +00:00
56470cd3c5
Change-Id: Ie05be8326820d8f3907be29e355642342555d7a5
36 lines
1.1 KiB
PHP
36 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* ImageMap extension - Allows clickable HTML image maps.
|
|
*
|
|
* @link https://www.mediawiki.org/wiki/Extension:ImageMap Documentation
|
|
*
|
|
* @file
|
|
* @ingroup Extensions
|
|
* @package MediaWiki
|
|
* @author Tim Starling
|
|
* @copyright (C) 2007 Tim Starling
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
|
|
*/
|
|
|
|
if ( !defined( 'MEDIAWIKI' ) ) {
|
|
die( 'This file is a MediaWiki extension, it is not a valid entry point' );
|
|
}
|
|
|
|
//self executing anonymous function to prevent global scope assumptions
|
|
call_user_func( function() {
|
|
$dir = __DIR__ . '/';
|
|
$GLOBALS['wgMessagesDirs']['ImageMap'] = __DIR__ . '/i18n';
|
|
$GLOBALS['wgAutoloadClasses']['ImageMap'] = $dir . 'ImageMap_body.php';
|
|
$GLOBALS['wgHooks']['ParserFirstCallInit'][] = 'ImageMap::onParserFirstCallInit';
|
|
|
|
$GLOBALS['wgExtensionCredits']['parserhook'][] = array(
|
|
'path' => __FILE__,
|
|
'name' => 'ImageMap',
|
|
'author' => 'Tim Starling',
|
|
'url' => 'https://www.mediawiki.org/wiki/Extension:ImageMap',
|
|
'descriptionmsg' => 'imagemap_desc',
|
|
);
|
|
|
|
$GLOBALS['wgParserTestFiles'][] = $dir . 'imageMapParserTests.txt';
|
|
} );
|