Index: trunk/extensions/UploadWizard/resources/mw.UploadWizardDeed.js |
— | — | @@ -123,9 +123,10 @@ |
124 | 124 | _this.$authorInput2 = $j( '<input type="text" />' ).attr( { name: "author2" } ).addClass( 'mwe-upwiz-sign' ); |
125 | 125 | |
126 | 126 | var defaultLicense = mw.UploadWizard.config.licensesOwnWork.defaults[0]; |
127 | | - var defaultLicenseURL = mw.isDefined ( mw.UploadWizard.config.licenses[defaultLicense].url ) ? |
128 | | - mw.UploadWizard.config.licenses[defaultLicense].url : |
129 | | - '#missing license URL'; |
| 127 | + var defaultLicenseURL = mw.UploadWizard.config.licenses[defaultLicense].url === undefined ? |
| 128 | + '#missing license URL' : |
| 129 | + mw.UploadWizard.config.licenses[defaultLicense].url; |
| 130 | + |
130 | 131 | var defaultLicenseLink = $j( '<a>' ).attr( { 'target': '_blank', 'href': defaultLicenseURL } ); |
131 | 132 | var $standardDiv = $j( '<div />' ).append( |
132 | 133 | $j( '<label for="author2" generated="true" class="mwe-validator-error" style="display:block;" />' ), |