From: Bartosz DziewoƄski Date: Tue, 13 Oct 2015 15:17:46 +0000 (+0200) Subject: mw.ForeignStructuredUpload: Use '{{own}}' template for 'source' field X-Git-Tag: 1.31.0-rc.0~9419^2 X-Git-Url: http://git.cyclocoop.org/%22%20%20.%20generer_url_ecrire%28%22mots_tous%22%29%20.%20%22?a=commitdiff_plain;h=1dafc0ff1f2b9b73a26ae367ab0ed9733673b16f;p=lhc%2Fweb%2Fwiklou.git mw.ForeignStructuredUpload: Use '{{own}}' template for 'source' field Change-Id: Ib939b6c8b0ae3afdb93465721de8de995687b81a --- diff --git a/resources/src/mediawiki/mediawiki.ForeignStructuredUpload.js b/resources/src/mediawiki/mediawiki.ForeignStructuredUpload.js index d27091653d..4ec92e7821 100644 --- a/resources/src/mediawiki/mediawiki.ForeignStructuredUpload.js +++ b/resources/src/mediawiki/mediawiki.ForeignStructuredUpload.js @@ -77,7 +77,7 @@ '\n|date=' + this.getDate() + '\n|source=' + - this.getUser() + + this.getSource() + '\n|author=' + this.getUser() + '\n}}\n\n' + @@ -158,6 +158,16 @@ 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. *