mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions
synced 2024-11-28 02:00:23 +00:00
7447b8bac2
Prepare to make phpcs pass Change-Id: I82db90da7c8108196f81491068c886c65a7fba4c
17 lines
630 B
PHP
17 lines
630 B
PHP
<?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+' );
|
|
}
|