blob: 3fff1b1835b2cc12ccbb144edc8bfaa270e24a56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<?php
/**
* Initialization file for the ParserHooks MediaWiki extension.
*
* https://github.com/JeroenDeDauw/ParserHooks
*
* @licence GNU GPL v2+
* @author Jeroen De Dauw < jeroendedauw@gmail.com >
*/
if ( defined( 'ParserHooks_VERSION' ) ) {
// Do not initialize more than once.
return 1;
}
define( 'ParserHooks_VERSION', '1.6.0' );
if ( is_readable( __DIR__ . '/vendor/autoload.php' ) ) {
include_once( __DIR__ . '/vendor/autoload.php' );
}
call_user_func( function() {
global $wgExtensionCredits, $wgExtensionMessagesFiles, $wgMessagesDirs;
$wgExtensionCredits['other'][] = [
'path' => __FILE__,
'name' => 'ParserHooks',
'version' => ParserHooks_VERSION,
'author' => [
'[https://www.mediawiki.org/wiki/User:Jeroen_De_Dauw Jeroen De Dauw]',
],
'url' => 'https://github.com/JeroenDeDauw/ParserHooks',
'descriptionmsg' => 'parserhooks-desc',
'license-name' => 'GPL-2.0-or-later'
];
$wgMessagesDirs['ParserHooksExtension'] = __DIR__ . '/i18n';
$wgExtensionMessagesFiles['ParserHooksExtension'] = __DIR__ . '/ParserHooks.i18n.php';
} );
// @codeCoverageIgnoreEnd
|