Follow-up I0bb4ed7f7: Use correct 'this'
authorEd Sanders <esanders@wikimedia.org>
Fri, 16 Feb 2018 11:55:00 +0000 (11:55 +0000)
committerEd Sanders <esanders@wikimedia.org>
Fri, 16 Feb 2018 11:55:00 +0000 (11:55 +0000)
Bug: T187523
Change-Id: I7ced05b239d3ce0da1bcd6acdb3a30f65872645c

resources/src/mediawiki/mediawiki.ForeignStructuredUpload.js

index 4d56940..177861e 100644 (file)
         * @return {string}
         */
        ForeignStructuredUpload.prototype.getDescriptions = function () {
+               var upload = this;
                return this.descriptions.map( function ( desc ) {
-                       return this.config.format.description
+                       return upload.config.format.description
                                .replace( '$LANGUAGE', desc.language )
                                .replace( '$TEXT', desc.text );
                } ).join( '\n' );