r82186 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82185‎ | r82186 | r82187 >
Date:19:52, 15 February 2011
Author:travis
Status:deferred
Tags:
Comment:
fix bug 26745, process uploads all submitted files even if there is a missing filename in between
Modified paths:
  • /trunk/extensions/MultiUpload/MultiUpload.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MultiUpload/MultiUpload.body.php
@@ -88,7 +88,9 @@
8989 $_FILES['wpUploadFile'] = $_FILES['wpUploadFile' . $i];
9090 wfRestoreWarnings();
9191 $up = UploadBase::createFromRequest( $request );
92 - $this->mUploads[$i] = $up;
 92+ if ($up) {
 93+ $this->mUploads[] = $up;
 94+ }
9395 }
9496 }
9597 $this->mDesiredDestName = $this->mDesiredDestNames[0];

Status & tagging log