Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js |
— | — | @@ -1337,8 +1337,7 @@ |
1338 | 1338 | } ); |
1339 | 1339 | $thanksDiv.append( $thumbnailWrapDiv ); |
1340 | 1340 | |
1341 | | - var thumbTitle = String(upload.title); |
1342 | | - var thumbWikiText = "[[" + thumbTitle.replace(/_/g, ' ') + "|thumb|" + gM( 'mwe-upwiz-thanks-caption' ) + "]]"; |
| 1341 | + var thumbWikiText = "[[" + upload.title.toText() + "|thumb|" + gM( 'mwe-upwiz-thanks-caption' ) + "]]"; |
1343 | 1342 | |
1344 | 1343 | $thanksDiv.append( |
1345 | 1344 | $j( '<div class="mwe-upwiz-data"></div>' ) |