Fix Zip add file, we must first commit and then delete the temporary file

modifié:         core/lib/Thelia/Core/FileFormat/Archive/ArchiveBuilder/ZipArchiveBuilder.php
This commit is contained in:
Benjamin Perche
2014-07-04 09:46:21 +02:00
parent 0ceecf09c8
commit 7136371960

View File

@@ -431,11 +431,11 @@ class ZipArchiveBuilder extends AbstractArchiveBuilder
throw new \ErrorException($translatedErrorMessage); throw new \ErrorException($translatedErrorMessage);
} }
// If not too
unlink($fileDownloadCache);
$this->commit(); $this->commit();
// Delete the temp file
unlink($fileDownloadCache);
return $this; return $this;
>>>>>>> Define archive builders and formatters >>>>>>> Define archive builders and formatters
} }