Merge "specials: Avoid the use of global variables in Special:Version"
[lhc/web/wiklou.git] / resources / src / mediawiki.ForeignStructuredUpload.js
index 177861e..619cf38 100644 (file)
@@ -1,4 +1,4 @@
-( function ( mw, $, OO ) {
+( function () {
        /**
         * Used to represent an upload in progress on the frontend.
         *
@@ -25,7 +25,7 @@
 
                // Config for uploads to local wiki.
                // Can be overridden with foreign wiki config when #loadConfig is called.
-               this.config = mw.config.get( 'wgUploadDialog' );
+               this.config = require( './config.json' ).UploadDialog;
 
                mw.ForeignUpload.call( this, target, apiconfig );
        }
        };
 
        mw.ForeignStructuredUpload = ForeignStructuredUpload;
-}( mediaWiki, jQuery, OO ) );
+}() );