r96917 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96916‎ | r96917 | r96918 >
Date:21:54, 12 September 2011
Author:reedy
Status:ok (Comments)
Tags:
Comment:
Bug 30879 - UploadWizard adds categories without [[Category:]] prefix

Hack fix for the time being
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/UploadWizard/resources/jquery/jquery.mwCoolCats.js (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/UploadWizard/resources/jquery/jquery.mwCoolCats.js
@@ -208,7 +208,7 @@
209209 });
210210
211211 this.getWikiText = function() {
212 - var wikiText = _getCats().map( function() { return '[[' + this.getMainText() + ']]'; } )
 212+ var wikiText = _getCats().map( function() { return '[[Category:' + this.getMainText() + ']]'; } )
213213 .toArray()
214214 .join( "\n" );
215215

Follow-up revisions

RevisionCommit summaryAuthorDate
r96918fix: add missing category prefixjeroendedauw21:56, 12 September 2011

Comments

#Comment by Jeroen De Dauw (talk | contribs)   21:57, 12 September 2011

Fixed in trunk by r96918

Status & tagging log