mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-24 15:44:33 +00:00
bc52c77d24
* Use string constants instead of integers * Derive new names from old via conversion of constant naming convention to CamelCase. * Replace old constant string e.g. 'MW_MATH_ABC_DEF' with new string 'abcDef' * Replace old constant value with new string. * Tests to demonstrates what is actually done. * Rename constants Bug: T106630 Bug: T106631 Bug: T87941 Change-Id: I6d1094ece79e912d9ddbef6681a25196c7a6e801
15 lines
633 B
PHP
15 lines
633 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.25+' );
|
|
} |