r87370 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87369‎ | r87370 | r87371 >
Date:23:28, 3 May 2011
Author:neilk
Status:ok
Tags:
Comment:
a simpler way to fix bug 26178
Modified paths:
  • /trunk/extensions/UploadWizard/resources/mw.UploadWizard.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js
@@ -1337,8 +1337,7 @@
13381338 } );
13391339 $thanksDiv.append( $thumbnailWrapDiv );
13401340
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' ) + "]]";
13431342
13441343 $thanksDiv.append(
13451344 $j( '<div class="mwe-upwiz-data"></div>' )

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r87097better fix for bug 26178kaldari19:50, 28 April 2011

Status & tagging log