Handle when the epub links to an missing resource
--HG-- extra : rebase_source : bda1e6e6af63284907e326790fbe85946a907a7e
Ten commit jest zawarty w:
rodzic
ea3da650de
commit
2cb1682d3b
1 zmienionych plików z 2 dodań i 1 usunięć
|
@ -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);
|
||||
}
|
||||
|
|
Ładowanie…
Dodaj tabelę
Add a link
Odniesienie w nowym zgłoszeniu