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 ef75863342
commit 2702c20014

View File

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