2007-01-05 02:13:39 +00:00
|
|
|
<?php
|
|
|
|
|
2015-05-04 20:40:24 +00:00
|
|
|
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';
|
2018-10-26 19:25:36 +00:00
|
|
|
wfWarn(
|
2017-06-02 18:55:29 +00:00
|
|
|
'Deprecated PHP entry point used for ParserFunctions extension. ' .
|
|
|
|
'Please use wfLoadExtension instead, ' .
|
2015-05-04 20:40:24 +00:00
|
|
|
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
|
2018-10-26 19:25:36 +00:00
|
|
|
);
|
2015-05-04 20:40:24 +00:00
|
|
|
return true;
|
|
|
|
} else {
|
2018-10-26 19:25:36 +00:00
|
|
|
die( 'This version of the ParserFunctions extension requires MediaWiki 1.32+' );
|
2007-01-05 02:13:39 +00:00
|
|
|
}
|