From e212e6b12acf19694ef854c011d04d8aa82aae68 Mon Sep 17 00:00:00 2001 From: tcit Date: Fri, 16 May 2014 16:49:09 +0200 Subject: [PATCH] Cleaned epub fonction --- inc/poche/Poche.class.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 92db7d1b..1b69cd61 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -1237,14 +1237,14 @@ class Poche $book->setCoverImage("Cover.png", file_get_contents("themes/baggy/img/apple-touch-icon-152.png"), "image/png", $fullTitle); - $cover = $content_start . _('Produced by wallabag with PHPePub') . $bookEnd; + $cover = $content_start . '

' . _('Produced by wallabag with PHPePub') . '

'. _('Please open an issue if you have trouble with the display of this E-Book on your device.') . '

' . $bookEnd; //$book->addChapter("Table of Contents", "TOC.xhtml", NULL, false, EPub::EXTERNAL_REF_IGNORE); $book->addChapter("Notices", "Cover2.html", $cover); $book->buildTOC(); - foreach ($entries as $entry) { + foreach ($entries as $entry) { //set tags as subjects $tags = $this->store->retrieveTagsByEntry($entry['id']); foreach ($tags as $tag) { $book->setSubject($tag['value']); @@ -1258,10 +1258,8 @@ class Poche } if (DEBUG_POCHE) { - $epuplog = $book->getLog(); - $book->addChapter("Log", "Log.html", $content_start . $log->getLog() . "\n" . $bookEnd); // generation log - // Only used in case we need to debug EPub.php. - //$book->addChapter("ePubLog", "ePubLog.html", $content_start . $epuplog . "\n" . $bookEnd); + $epuplog = $book->getLog(); + $book->addChapter("Log", "Log.html", $content_start . $log->getLog() . "\n" . $bookEnd); // log generation } $book->finalize(); $zipData = $book->sendBook($bookFileName); -- 2.41.0