mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-23 22:03:28 +00:00
fix $wgCodeMirrorResources initialization (v 3.0.1)
Change-Id: I1439b635c655e072f995f3ad205ca736f3685e09
This commit is contained in:
parent
b096a2a52c
commit
b8aab4bc2a
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue