Merge "mw.ForeignStructuredUpload: Use '{{own}}' template for 'source' field"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 13 Oct 2015 15:40:02 +0000 (15:40 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 13 Oct 2015 15:40:02 +0000 (15:40 +0000)
resources/src/mediawiki/mediawiki.ForeignStructuredUpload.js

index d270916..4ec92e7 100644 (file)
@@ -77,7 +77,7 @@
                        '\n|date=' +
                        this.getDate() +
                        '\n|source=' +
-                       this.getUser() +
+                       this.getSource() +
                        '\n|author=' +
                        this.getUser() +
                        '\n}}\n\n' +
                return '';
        };
 
+       /**
+        * Get the source. This should be some sort of localised text for "Own work".
+        *
+        * @private
+        * @return {string}
+        */
+       ForeignStructuredUpload.prototype.getSource = function () {
+               return '{{own}}';
+       };
+
        /**
         * Get the username.
         *