Index: trunk/extensions/UploadWizard/resources/mw.UploadWizardDeed.js |
— | — | @@ -89,18 +89,13 @@ |
90 | 90 | }, |
91 | 91 | |
92 | 92 | getLicenseWikiText: function() { |
93 | | - var wikiText; |
94 | | - // TODO: not nice to have 2 cases here and then have to insert the attribution field... |
95 | | - |
96 | 93 | if ( _this.showCustomDiv && this.licenseInput.getWikiText() !== '' ) { |
97 | | - wikiText = this.licenseInput.getWikiText(); |
| 94 | + return this.licenseInput.getWikiText(); |
98 | 95 | } |
99 | 96 | else { |
100 | | - wikiText = '{{' + mw.UploadWizard.config.licensesOwnWork.filterTemplate |
| 97 | + return '{{' + mw.UploadWizard.config.licensesOwnWork.filterTemplate |
101 | 98 | + '|' + mw.UploadWizard.config.licensesOwnWork.defaults[0] + '}}'; |
102 | 99 | } |
103 | | - |
104 | | - return wikiText.slice( 0, -2 ) + '|attribution=' + this.getAuthorWikiText() + wikiText.slice( -2 ); |
105 | 100 | }, |
106 | 101 | |
107 | 102 | getSourceWikiText: function() { |