Index: trunk/extensions/UploadWizard/resources/mw.UploadWizardLicenseInput.js |
— | — | @@ -58,7 +58,7 @@ |
59 | 59 | if ( mw.isDefined( mw.UploadWizard.config.licenses[name] ) ) { |
60 | 60 | var license = { name: name, props: mw.UploadWizard.config.licenses[name] }; |
61 | 61 | _this.licenses.push( license ); |
62 | | - var templates = mw.isDefined( license.props['templates'] ) ? license.props.templates : [ license.name ]; |
| 62 | + var templates = mw.isDefined( license.props['templates'] ) ? license.props.templates.slice(0) : [ license.name ]; |
63 | 63 | var origTemplateString = templates.join( '|' ); |
64 | 64 | if ( mw.isDefined( config['prependTemplates'] ) ) { |
65 | 65 | $j.each( config['prependTemplates'], function( i, template ) { |