summaryrefslogtreecommitdiff
path: root/extensions/ParserFunctions/ParserFunctions.php
blob: c38db82e09526c8a2f87db474676eb191f7e7a5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

if ( function_exists( 'wfLoadExtension' ) ) {
	wfLoadExtension( 'ParserFunctions' );
	// Keep i18n globals so mergeMessageFileList.php doesn't break
	$wgMessagesDirs['ParserFunctions'] = __DIR__ . '/i18n';
	$wgExtensionMessagesFiles['ParserFunctionsMagic'] = __DIR__ . '/ParserFunctions.i18n.magic.php';
	/* wfWarn(
		'Deprecated PHP entry point used for ParserFunctions extension. Please use wfLoadExtension instead, ' .
		'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
	); */
	return true;
} else {
	die( 'This version of the ParserFunctions extension requires MediaWiki 1.25+' );
}