Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js |
— | — | @@ -1274,7 +1274,7 @@ |
1275 | 1275 | $thanksDiv.append( $thumbnailWrapDiv ); |
1276 | 1276 | |
1277 | 1277 | var thumbTitle = String(upload.title); |
1278 | | - var thumbWikiText = "[[" + thumbTitle.replace('_', ' ') + "|thumb|" + gM( 'mwe-upwiz-thanks-caption' ) + "]]"; |
| 1278 | + var thumbWikiText = "[[" + thumbTitle.replace(/_/g, ' ') + "|thumb|" + gM( 'mwe-upwiz-thanks-caption' ) + "]]"; |
1279 | 1279 | |
1280 | 1280 | $thanksDiv.append( |
1281 | 1281 | $j( '<div class="mwe-upwiz-data"></div>' ) |