mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-12-01 02:36:47 +00:00
Remove php entry point
Deprecation notice since I7c37e6eb6b7c802fa1e4ebaca2752247ba4d3b8c Bug: T140850 Change-Id: Iff4c44bed0b143bb015bca047e4673bf2d11aa2b
This commit is contained in:
parent
646fcf6ad1
commit
08ac202ba9
16
Math.php
16
Math.php
|
@ -1,16 +0,0 @@
|
|||
<?php
|
||||
|
||||
if ( function_exists( 'wfLoadExtension' ) ) {
|
||||
wfLoadExtension( 'Math' );
|
||||
// Keep i18n globals so mergeMessageFileList.php doesn't break
|
||||
$wgMessagesDirs['Math'] = __DIR__ . '/i18n';
|
||||
$wgExtensionMessagesFiles['Math'] = __DIR__ . '/Math.alias.php';
|
||||
$wgExtensionMessagesFiles['MathAliasNoTranslate'] = __DIR__ . '/Math.alias.noTranslate.php';
|
||||
wfWarn(
|
||||
'Deprecated PHP entry point used for Math extension. Please use wfLoadExtension instead, ' .
|
||||
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
|
||||
);
|
||||
return;
|
||||
} else {
|
||||
die( 'This version of the Math extension requires MediaWiki 1.32+' );
|
||||
}
|
Loading…
Reference in a new issue