commit
a378cee1e0
@ -525,7 +525,7 @@ IMG;
|
|||||||
public function addImageToManifest($file)
|
public function addImageToManifest($file)
|
||||||
{
|
{
|
||||||
// Get the file extension
|
// 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)
|
// 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";
|
$add = ' <manifest:file-entry manifest:media-type="image/'.$ext.'" manifest:full-path="Pictures/'.$file.'"/>'."\n";
|
||||||
// Append the image to the manifest
|
// Append the image to the manifest
|
||||||
@ -772,6 +772,4 @@ IMG;
|
|||||||
$this->contentXml = preg_replace($searchreg, "", $this->contentXml);
|
$this->contentXml = preg_replace($searchreg, "", $this->contentXml);
|
||||||
return $matches[1];
|
return $matches[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user