mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions
synced 2024-11-15 11:59:54 +00:00
Start showing warning for deprecated PHP entry point
Change-Id: I579b8be26cc469dd457a1038cdb8847b7a2cbbeb
This commit is contained in:
parent
323e6dd8f6
commit
0d21541553
|
@ -5,12 +5,12 @@ if ( function_exists( 'wfLoadExtension' ) ) {
|
||||||
// Keep i18n globals so mergeMessageFileList.php doesn't break
|
// Keep i18n globals so mergeMessageFileList.php doesn't break
|
||||||
$wgMessagesDirs['ParserFunctions'] = __DIR__ . '/i18n';
|
$wgMessagesDirs['ParserFunctions'] = __DIR__ . '/i18n';
|
||||||
$wgExtensionMessagesFiles['ParserFunctionsMagic'] = __DIR__ . '/ParserFunctions.i18n.magic.php';
|
$wgExtensionMessagesFiles['ParserFunctionsMagic'] = __DIR__ . '/ParserFunctions.i18n.magic.php';
|
||||||
/* wfWarn(
|
wfWarn(
|
||||||
'Deprecated PHP entry point used for ParserFunctions extension. ' .
|
'Deprecated PHP entry point used for ParserFunctions extension. ' .
|
||||||
'Please use wfLoadExtension instead, ' .
|
'Please use wfLoadExtension instead, ' .
|
||||||
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
|
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
|
||||||
); */
|
);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
die( 'This version of the ParserFunctions extension requires MediaWiki 1.25+' );
|
die( 'This version of the ParserFunctions extension requires MediaWiki 1.32+' );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue