r80292 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80291‎ | r80292 | r80293 >
Date:18:45, 14 January 2011
Author:dale
Status:deferred
Tags:
Comment:
in case mwAddMediaConfig has not yet been defined
Modified paths:
  • /branches/MwEmbedStandAlone/remotes/mediaWiki.js (modified) (history)

Diff [purge]

Index: branches/MwEmbedStandAlone/remotes/mediaWiki.js
@@ -91,6 +91,9 @@
9292 [ /wikimedia\.org$/ , /wikipedia\.org$/ , /wiktionary.org$/ , /wikinews.org$/ , /wikibooks.org$/ , /wikisource.org$/ , /wikiversity.org$/ , /wikiquote.org$/ ]
9393 );
9494
 95+if( typeof mwAddMediaConfig == 'undefined'){
 96+ mwAddMediaConfig = {};
 97+}
9598 // Set legacy add media wizard config
9699 mwAddMediaConfig['enabled_providers'] = [ 'wiki_commons', 'upload' ]
97100

Status & tagging log