mediawiki-extensions-Replac.../ReplaceText.php
Yaron Koren d9941a0b2b Follow-up 45e7d3a7: Turn ReplaceText.php into a static registration shim
Change-Id: I9bdae46316d2f31dc5670f004fb8b80defeb8187
2020-06-18 21:14:12 +00:00

12 lines
443 B
PHP

<?php
wfLoadExtension( 'ReplaceText' );
// Keep i18n globals so mergeMessageFileList.php doesn't break
$wgMessagesDirs['ReplaceText'] = __DIR__ . '/i18n';
$wgExtensionMessagesFiles['ReplaceTextAlias'] = __DIR__ . '/ReplaceText.i18n.alias.php';
wfWarn(
'Deprecated PHP entry point used for Replace Text extension. ' .
'Please use wfLoadExtension instead, ' .
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
);