mediawiki-extensions-Math/Math.php
paladox df8ad1c799 Add php code sniffer to composer
Add support for php code sniffer

Change-Id: I7dcdd88be4f1f8219f71ab770979284761e09bae
2015-09-23 10:46:14 +01:00

16 lines
634 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+' );
}