Skip to content

Commit

Permalink
Merge pull request #1 from stephanmae/fix_issue_16
Browse files Browse the repository at this point in the history
cybermonde#16 thanks to ArielZamparini-REISys
  • Loading branch information
stephanmae authored Mar 21, 2021
2 parents e89bb9b + 8ffb82c commit d3bac58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Odf.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ private function _save()
$manifdata = $manifdata.'<manifest:file-entry manifest:media-type="image/'.$ext.'" manifest:full-path="Pictures/'.$val.'"/>'."\n";
}
//Place content of $manifdata variable in manifest.xml file at appropriate place
$this->manifestXml = substr_replace($this->manifestXml, "\n".$manifdata, $lastpos+1, 0);
$replace = '<manifest:file-entry manifest:full-path="meta.xml" manifest:media-type="text/xml"/>'; $this->manifestXml = str_replace($replace, $replace . "\n" . $manifdata, $this->manifestXml);
//$this->manifestXml = $this->manifestXml ."\n".$manifdata;

if (! $this->file->addFromString('META-INF/manifest.xml', $this->manifestXml)) {
Expand Down

0 comments on commit d3bac58

Please sign in to comment.