mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-30 19:15:43 +00:00
9de4e8cc00
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
14 lines
504 B
PHP
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+' );
|
|
}
|