]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge pull request #3023 from mart-e/epub-notice-at-the-end
authorJérémy Benoist <j0k3r@users.noreply.github.com>
Wed, 5 Apr 2017 08:20:19 +0000 (10:20 +0200)
committerGitHub <noreply@github.com>
Wed, 5 Apr 2017 08:20:19 +0000 (10:20 +0200)
Add export notice at the end of the epub

src/Wallabag/CoreBundle/Helper/EntriesExport.php

index 93c01fcb4a634127f1bb198c7db67bbf9d13ff6a..3d36a4c89e40c91c3ae635c5c8aad1d5641ea835 100644 (file)
@@ -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,