Handle when the epub links to an missing resource
--HG-- extra : rebase_source : bda1e6e6af63284907e326790fbe85946a907a7e
This commit is contained in:
parent
ea3da650de
commit
2cb1682d3b
|
@ -168,7 +168,8 @@ class EPub {
|
|||
$path = str_replace ("-SLASH-", "/", $comp);
|
||||
$path = $this->getFullPath ($path, $elementPath);
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue