Handle when the epub links to an missing resource

--HG--
extra : rebase_source : bda1e6e6af63284907e326790fbe85946a907a7e
This commit is contained in:
Sébastien Lucas 2013-08-30 20:59:15 +02:00
parent ea3da650de
commit 2cb1682d3b

View file

@ -168,7 +168,8 @@ class EPub {
$path = str_replace ("-SLASH-", "/", $comp); $path = str_replace ("-SLASH-", "/", $comp);
$path = $this->getFullPath ($path, $elementPath); $path = $this->getFullPath ($path, $elementPath);
if (!$this->zip->FileExists($path)) { if (!$this->zip->FileExists($path)) {
throw new Exception ("Unable to find " . $path); error_log ("Unable to find " . $path);
return false;
} }
return str_replace ("/", "-SLASH-", $path); return str_replace ("/", "-SLASH-", $path);
} }