fix $wgCodeMirrorResources initialization (v 3.0.1)

Change-Id: I1439b635c655e072f995f3ad205ca736f3685e09
This commit is contained in:
Pavel Astakhov 2014-10-24 13:36:03 +06:00
parent b096a2a52c
commit b8aab4bc2a

View file

@ -15,7 +15,7 @@ if ( !defined( 'MEDIAWIKI' ) ) {
die( 'This file is an extension to MediaWiki and thus not a valid entry point.' );
}
const EXT_CODEMIRROR_VERSION = '3.0.0';
const EXT_CODEMIRROR_VERSION = '3.0.1';
// Register this extension on Special:Version
$wgExtensionCredits['parserhook'][] = array(
@ -86,6 +86,7 @@ $wgResourceModules['ext.CodeMirror.other'] = array(
'group' => 'ext.CodeMirror',
) + $tpl;
$wgCodeMirrorResources = array(
'dependencies' => array( 'ext.CodeMirror.lib' => true ),
);
if ( false === isset( $wgCodeMirrorResources ) ) {
$wgCodeMirrorResources = array();
}
$wgCodeMirrorResources['dependencies']['ext.CodeMirror.lib'] = true;