Fix Zip generation of ODT with PHPZip

This commit is contained in:
Laurent Destailleur 2024-10-17 00:27:18 +02:00
parent 956a039082
commit 82fdbc406a

View File

@ -740,7 +740,7 @@ IMG;
// Add the image to the Manifest (which maintains a list of images, necessary to avoid "Corrupt ODT file. Repair?" when opening the file with LibreOffice)
$this->addImageToManifest($imageValue);
}
if (! $this->file->addFromString('./META-INF/manifest.xml', $this->manifestXml)) {
if (! $this->file->addFromString('META-INF/manifest.xml', $this->manifestXml)) {
throw new OdfException('Error during file export: manifest.xml');
}
$this->file->close();