Handle when the epub links to an missing resource

--HG--
extra : rebase_source : bda1e6e6af63284907e326790fbe85946a907a7e
Tato revize je obsažena v:
Sébastien Lucas 2013-08-30 20:59:15 +02:00
rodič ea3da650de
revize 2cb1682d3b

Zobrazit soubor

@ -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);
}