mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-15 03:34:10 +00:00
Merge "Start showing warning for deprecated PHP entry point"
This commit is contained in:
commit
1d6dc9fead
6
Math.php
6
Math.php
|
@ -5,11 +5,11 @@ if ( function_exists( 'wfLoadExtension' ) ) {
|
||||||
$wgMessagesDirs['Math'] = __DIR__ . '/i18n';
|
$wgMessagesDirs['Math'] = __DIR__ . '/i18n';
|
||||||
$wgExtensionMessagesFiles['Math'] = __DIR__ . '/Math.alias.php';
|
$wgExtensionMessagesFiles['Math'] = __DIR__ . '/Math.alias.php';
|
||||||
$wgExtensionMessagesFiles['MathAliasNoTranslate'] = __DIR__ . '/Math.alias.noTranslate.php';
|
$wgExtensionMessagesFiles['MathAliasNoTranslate'] = __DIR__ . '/Math.alias.noTranslate.php';
|
||||||
/* wfWarn(
|
wfWarn(
|
||||||
'Deprecated PHP entry point used for Math extension. Please use wfLoadExtension instead, ' .
|
'Deprecated PHP entry point used for Math extension. 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;
|
return;
|
||||||
} else {
|
} else {
|
||||||
die( 'This version of the Math extension requires MediaWiki 1.25+' );
|
die( 'This version of the Math extension requires MediaWiki 1.32+' );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue