Merge "mw.ForeignStructuredUpload: Remove #getTemplateName"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 5 May 2016 19:29:00 +0000 (19:29 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 5 May 2016 19:29:00 +0000 (19:29 +0000)
resources/src/mediawiki/mediawiki.ForeignStructuredUpload.js

index c03c0d1..f90071c 100644 (file)
@@ -85,8 +85,7 @@
        ForeignStructuredUpload.prototype.getText = function () {
                return (
                        '== {{int:filedesc}} ==\n' +
-                       '{{' +
-                       this.getTemplateName() +
+                       '{{Information' +
                        '\n|description=' +
                        this.getDescriptions() +
                        '\n|date=' +
                return this.date.toString();
        };
 
-       /**
-        * Gets the name of the template to use for creating the file metadata.
-        * Override in subclasses for other templates.
-        *
-        * @private
-        * @return {string}
-        */
-       ForeignStructuredUpload.prototype.getTemplateName = function () {
-               return 'Information';
-       };
-
        /**
         * Fetches the wikitext for any descriptions that have been added
         * to the upload.