2011-11-28 20:28:28 +00:00
|
|
|
<?php
|
2015-05-03 21:21:00 +00:00
|
|
|
|
2011-11-28 20:28:28 +00:00
|
|
|
/**
|
|
|
|
* VisualEditor extension
|
2012-07-19 21:25:16 +00:00
|
|
|
*
|
2015-03-03 21:27:37 +00:00
|
|
|
* This PHP entry point is deprecated. Please use wfLoadExtension() and the extension.json file
|
|
|
|
* instead. See https://www.mediawiki.org/wiki/Manual:Extension_registration for more details.
|
|
|
|
*
|
2011-11-28 20:28:28 +00:00
|
|
|
* @file
|
|
|
|
* @ingroup Extensions
|
2016-01-03 22:56:59 +00:00
|
|
|
* @copyright 2011-2016 VisualEditor Team and others; see AUTHORS.txt
|
2012-07-19 00:11:26 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
2011-11-28 20:28:28 +00:00
|
|
|
*/
|
2015-06-01 17:06:15 +00:00
|
|
|
|
2015-05-25 21:09:44 +00:00
|
|
|
if ( function_exists( 'wfLoadExtension' ) ) {
|
|
|
|
wfLoadExtension( 'VisualEditor' );
|
|
|
|
|
|
|
|
// Keep i18n globals so mergeMessageFileList.php doesn't break
|
2016-02-17 16:18:02 +00:00
|
|
|
$wgMessagesDirs['VisualEditor'] = [
|
2015-05-25 21:09:44 +00:00
|
|
|
__DIR__ . '/lib/ve/i18n',
|
|
|
|
__DIR__ . '/modules/ve-mw/i18n',
|
|
|
|
__DIR__ . '/modules/ve-wmf/i18n'
|
2016-02-17 16:18:02 +00:00
|
|
|
];
|
2015-05-25 21:09:44 +00:00
|
|
|
|
|
|
|
/* wfWarn(
|
|
|
|
'Deprecated PHP entry point used for VisualEditor extension. Please use wfLoadExtension '.
|
|
|
|
'instead, see https://www.mediawiki.org/wiki/Extension_registration for more details.'
|
|
|
|
); */
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
die( 'This version of the VisualEditor extension requires MediaWiki 1.25+.' );
|