MediaWiki REL1_31
CodeEditor.php
Go to the documentation of this file.
1<?php
2
19if ( function_exists( 'wfLoadExtension' ) ) {
20 wfLoadExtension( 'CodeEditor' );
21 // Keep i18n globals so mergeMessageFileList.php doesn't break
22 $wgMessagesDirs['CodeEditor'] = __DIR__ . '/i18n';
23 /* wfWarn(
24 'Deprecated PHP entry point used for CodeEditor extension. ' .
25 'Please use wfLoadExtension instead, ' .
26 'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
27 ); */
28 return;
29} else {
30 die( 'This version of the CodeEditor extension requires MediaWiki 1.25+' );
31}
wfLoadExtension( $ext, $path=null)
Load an extension.
$wgMessagesDirs['ReplaceText']