r89965 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89964‎ | r89965 | r89966 >
Date:14:22, 13 June 2011
Author:neilk
Status:ok
Tags:
Comment:
remove mistakenly committed commented-out code for debug
Modified paths:
  • /trunk/extensions/UploadWizard/resources/mw.fileApi.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/resources/mw.fileApi.js
@@ -21,7 +21,7 @@
2222 * @return boolean
2323 */
2424 isPreviewableFile: function( file ) {
25 - var known = [ /* 'image/png' */, 'image/gif', 'image/jpeg', 'image/svg+xml'],
 25+ var known = [ 'image/png', 'image/gif', 'image/jpeg', 'image/svg+xml'],
2626 tooHuge = 10 * 1024 * 1024;
2727 return ( $.inArray( file.type, known ) !== -1 ) && file.size > 0 && file.size < tooHuge;
2828 }

Status & tagging log