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:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user