mediawiki-extensions-WikiEd.../modules/wikiEditor.addMediaWizard.js

11 lines
397 B
JavaScript
Raw Normal View History

/* JavaScript for AddMediaWizard gadget */
if ( wgWikiEditorEnabledModules.addMediaWizard ) {
if( typeof mwAddMediaConfig == 'undefined' ) {
mwAddMediaConfig = {};
}
mwAddMediaConfig['enabled_providers'] = [ 'wiki_commons', 'upload' ];
// Transclude mwEmbed support
importScriptURI( 'http://prototype.wikimedia.org/s-2/js/mwEmbed/remotes/mediaWiki.js?&uselang=' + wgUserLanguage );
}