Index: trunk/phase3/includes/filerepo/LocalFile.php |
— | — | @@ -1981,8 +1981,11 @@ |
1982 | 1982 | $cleanupBatch = array(); |
1983 | 1983 | |
1984 | 1984 | foreach ( $storeStatus->success as $i => $success ) { |
| 1985 | + // Check if this item of the batch was successfully copied |
1985 | 1986 | if ( $success ) { |
1986 | | - $cleanupBatch[] = array( $storeBatch[$i][1], $storeBatch[$i][1] ); |
| 1987 | + // Item was successfully copied and needs to be removed again |
| 1988 | + // Extract ($dstZone, $dstRel) from the batch |
| 1989 | + $cleanupBatch[] = array( $storeBatch[$i][1], $storeBatch[$i][2] ); |
1987 | 1990 | } |
1988 | 1991 | } |
1989 | 1992 | $this->file->repo->cleanupBatch( $cleanupBatch ); |