2011-04-09 00:39:40 +00:00
|
|
|
<?php
|
2020-03-17 07:14:13 +00:00
|
|
|
|
2015-07-22 22:10:46 +00:00
|
|
|
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';
|
2018-10-26 18:51:49 +00:00
|
|
|
wfWarn(
|
2015-07-22 22:10:46 +00:00
|
|
|
'Deprecated PHP entry point used for Math extension. Please use wfLoadExtension instead, ' .
|
|
|
|
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
|
2018-10-26 18:51:49 +00:00
|
|
|
);
|
2015-07-22 22:10:46 +00:00
|
|
|
return;
|
|
|
|
} else {
|
2018-10-26 18:51:49 +00:00
|
|
|
die( 'This version of the Math extension requires MediaWiki 1.32+' );
|
2015-09-21 16:14:01 +00:00
|
|
|
}
|