Use $file in unlink, rather than the undefined $path
$operations = array();
$sourceFSFilesToDelete = array(); // cleanup for disk source files
// Validate each triplet and get the store operation...
- foreach ( $triplets as $i => $triplet ) {
+ foreach ( $triplets as $triplet ) {
list( $srcPath, $dstZone, $dstRel ) = $triplet;
// Resolve destination path
// Cleanup for disk source files...
foreach ( $sourceFSFilesToDelete as $file ) {
wfSuppressWarnings();
- unlink( $path ); // FS cleanup
+ unlink( $file ); // FS cleanup
wfRestoreWarnings();
}
}