Update odf.php

This commit is contained in:
Frédéric FRANCE 2020-01-07 21:13:31 +01:00 committed by Laurent Destailleur
parent 188024339d
commit 47ee03acdc

View File

@ -525,7 +525,7 @@ IMG;
public function addImageToManifest($file)
{
// Get the file extension
$ext = substr(strrchr($val, '.'), 1);
$ext = substr(strrchr($file, '.'), 1);
// Create the correct image XML entry to add to the manifest (this is necessary because ODT format requires that we keep a list of the images in the manifest.xml)
$add = ' <manifest:file-entry manifest:media-type="image/'.$ext.'" manifest:full-path="Pictures/'.$file.'"/>'."\n";
// Append the image to the manifest
@ -539,7 +539,7 @@ IMG;
* @throws OdfException
* @return void
*/
public function exportAsAttachedFile($name="")
public function exportAsAttachedFile($name = "")
{
$this->_save();
if (headers_sent($filename, $linenum)) {
@ -772,6 +772,4 @@ IMG;
$this->contentXml = preg_replace($searchreg, "", $this->contentXml);
return $matches[1];
}
}