mediawiki-extensions-WikiEd.../WikiEditor.php
Kunal Mehta 9de4e8cc00 Empty PHP entry point in favor of extension.json
Extension registration currently doesn't support merging 2d arrays
(T99257), so set it as an explicit global for now in a callback.

Change-Id: If7604a7ed8ec0f940c4a4d2988fcecc383303e1d
2015-05-19 20:48:10 -07:00

14 lines
504 B
PHP

<?php
if ( function_exists( 'wfLoadExtension' ) ) {
wfLoadExtension( 'WikiEditor' );
// Keep i18n globals so mergeMessageFileList.php doesn't break
$wgMessagesDirs['WikiEditor'] = __DIR__ . '/i18n';
/* wfWarn(
'Deprecated PHP entry point used for WikiEditor extension. Please use wfLoadExtension instead, ' .
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
); */
return true;
} else {
die( 'This version of the WikiEditor extension requires MediaWiki 1.25+' );
}