mediawiki-extensions-CodeEd.../CodeEditor.php
paladox 4b368e00ae Sync extension.json with CodeEditor.php and empty php entry point
Change-Id: I4e27986911bc73a1247f9e3f0127797fc560df1c
2015-05-29 23:12:10 +01:00

30 lines
972 B
PHP

<?php
/**
* Helper to load syntax-highlighting editor for JavaScript and CSS pages
* on-wiki.
*
* Extends and requires WikiEditor extension.
*
* Extension code is GPLv2 following MediaWiki base.
* Ace editor JS code follows its own license, see in the 'ace' subdir.
*/
/**
* 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.
*/
if ( function_exists( 'wfLoadExtension' ) ) {
wfLoadExtension( 'CodeEditor' );
// Keep i18n globals so mergeMessageFileList.php doesn't break
$wgMessagesDirs['CodeEditor'] = __DIR__ . '/i18n';
/* wfWarn(
'Deprecated PHP entry point used for CodeEditor extension. Please use wfLoadExtension instead, ' .
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
); */
return;
} else {
die( 'This version of the CodeEditor extension requires MediaWiki 1.25+' );
}