r87097 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87096‎ | r87097 | r87098 >
Date:19:50, 28 April 2011
Author:kaldari
Status:ok
Tags:
Comment:
better fix for bug 26178
Modified paths:
  • /trunk/extensions/UploadWizard/resources/mw.UploadWizard.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js
@@ -1274,7 +1274,7 @@
12751275 $thanksDiv.append( $thumbnailWrapDiv );
12761276
12771277 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' ) + "]]";
12791279
12801280 $thanksDiv.append(
12811281 $j( '<div class="mwe-upwiz-data"></div>' )

Follow-up revisions

RevisionCommit summaryAuthorDate
r87370a simpler way to fix bug 26178neilk23:28, 3 May 2011

Status & tagging log