PHP Classes

addFile

Recommend this page to a friend!

      EPub  >  All threads  >  addFile  >  (Un) Subscribe thread alerts  
Subject:addFile
Summary:problem with function
Messages:2
Author:Joan Jofra
Date:2010-04-14 08:55:59
Update:2010-04-14 09:32:49
 

  1. addFile   Reply   Report abuse  
Picture of Joan Jofra Joan Jofra - 2010-04-14 08:55:59
if you try to use the addFile function, to include a graphic, there is a problme in line 92_

$this->opf_manifest .= "\t\t<item id=\"" . $this->fileId . "\" href=\"" . $this->fileName . "\" media-type=\"" . $this->mimetype . "\" />\n";


you have to change it to:

$this->opf_manifest .= "\t\t<item id=\"" . $fileId . "\" href=\"" . $fileName . "\" media-type=\"" . $mimetype . "\" />\n";

Joan

  2. Re: addFile   Reply   Report abuse  
Picture of Asbjorn Grandt Asbjorn Grandt - 2010-04-14 09:32:49 - In reply to message 1 from Joan Jofra
I hate overzealous search and replace operations. I'll fix it now.

Thanks for pointing this one out. I'll check the rest of the file for that error before uploading a new one.