mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-30 18:35:12 +00:00
73a3f662b4
Change-Id: I7c37e6eb6b7c802fa1e4ebaca2752247ba4d3b8c
16 lines
629 B
PHP
16 lines
629 B
PHP
<?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+' );
|
|
}
|