From: Jérémy Benoist Date: Wed, 5 Apr 2017 08:20:19 +0000 (+0200) Subject: Merge pull request #3023 from mart-e/epub-notice-at-the-end X-Git-Tag: 2.2.3~15 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=656395fde63fe566bf44ee63b1344efdd8c2e653;hp=548e608870572d30962aefd0542b361dcf94b82e;p=github%2Fwallabag%2Fwallabag.git Merge pull request #3023 from mart-e/epub-notice-at-the-end Add export notice at the end of the epub --- diff --git a/src/Wallabag/CoreBundle/Helper/EntriesExport.php b/src/Wallabag/CoreBundle/Helper/EntriesExport.php index 93c01fcb..3d36a4c8 100644 --- a/src/Wallabag/CoreBundle/Helper/EntriesExport.php +++ b/src/Wallabag/CoreBundle/Helper/EntriesExport.php @@ -148,8 +148,6 @@ class EntriesExport $book->setCoverImage('Cover.png', file_get_contents($this->logoPath), 'image/png'); } - $book->addChapter('Notices', 'Cover2.html', $content_start.$this->getExportInformation('PHPePub').$bookEnd); - $book->buildTOC(); /* @@ -170,6 +168,8 @@ class EntriesExport $book->addChapter($entry->getTitle(), htmlspecialchars($filename).'.html', $chapter, true, EPub::EXTERNAL_REF_ADD); } + $book->addChapter('Notices', 'Cover2.html', $content_start.$this->getExportInformation('PHPePub').$bookEnd); + return Response::create( $book->getBook(), 200,