Index: trunk/phase3/includes/filerepo/FileRepo.php |
— | — | @@ -653,7 +653,7 @@ |
654 | 654 | $operations = array(); |
655 | 655 | $sourceFSFilesToDelete = array(); // cleanup for disk source files |
656 | 656 | // Validate each triplet and get the store operation... |
657 | | - foreach ( $triplets as $i => $triplet ) { |
| 657 | + foreach ( $triplets as $triplet ) { |
658 | 658 | list( $srcPath, $dstZone, $dstRel ) = $triplet; |
659 | 659 | |
660 | 660 | // Resolve destination path |
— | — | @@ -760,7 +760,7 @@ |
761 | 761 | // Cleanup for disk source files... |
762 | 762 | foreach ( $sourceFSFilesToDelete as $file ) { |
763 | 763 | wfSuppressWarnings(); |
764 | | - unlink( $path ); // FS cleanup |
| 764 | + unlink( $file ); // FS cleanup |
765 | 765 | wfRestoreWarnings(); |
766 | 766 | } |
767 | 767 | } |