Index: branches/MwEmbedStandAlone/remotes/mediaWiki.js |
— | — | @@ -91,6 +91,9 @@ |
92 | 92 | [ /wikimedia\.org$/ , /wikipedia\.org$/ , /wiktionary.org$/ , /wikinews.org$/ , /wikibooks.org$/ , /wikisource.org$/ , /wikiversity.org$/ , /wikiquote.org$/ ] |
93 | 93 | ); |
94 | 94 | |
| 95 | +if( typeof mwAddMediaConfig == 'undefined'){ |
| 96 | + mwAddMediaConfig = {}; |
| 97 | +} |
95 | 98 | // Set legacy add media wizard config |
96 | 99 | mwAddMediaConfig['enabled_providers'] = [ 'wiki_commons', 'upload' ] |
97 | 100 | |