diff options
author | Martin Trigaux <mat@odoo.com> | 2017-04-05 09:24:48 +0200 |
---|---|---|
committer | Martin Trigaux <mat@odoo.com> | 2017-04-05 09:24:48 +0200 |
commit | 1b70990b014189f7124357206b634ec18e97909b (patch) | |
tree | 68b8658726c7fb56fcc962015ef5012198b87670 /src/Wallabag | |
parent | 548e608870572d30962aefd0542b361dcf94b82e (diff) | |
download | wallabag-1b70990b014189f7124357206b634ec18e97909b.tar.gz wallabag-1b70990b014189f7124357206b634ec18e97909b.tar.zst wallabag-1b70990b014189f7124357206b634ec18e97909b.zip |
Add export notice at the end of the epub
The text "Produced by wallabag with PHPePub" is the first page of any epub.
On ebooks reader, it is common (e.g. kobo) to use the first page as the cover of
unread books, which makes it more difficult to differentiate the books.
Move the Notices chapter at the end of the book.
Diffstat (limited to 'src/Wallabag')
-rw-r--r-- | src/Wallabag/CoreBundle/Helper/EntriesExport.php | 4 |
1 files changed, 2 insertions, 2 deletions
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 | |||
148 | $book->setCoverImage('Cover.png', file_get_contents($this->logoPath), 'image/png'); | 148 | $book->setCoverImage('Cover.png', file_get_contents($this->logoPath), 'image/png'); |
149 | } | 149 | } |
150 | 150 | ||
151 | $book->addChapter('Notices', 'Cover2.html', $content_start.$this->getExportInformation('PHPePub').$bookEnd); | ||
152 | |||
153 | $book->buildTOC(); | 151 | $book->buildTOC(); |
154 | 152 | ||
155 | /* | 153 | /* |
@@ -170,6 +168,8 @@ class EntriesExport | |||
170 | $book->addChapter($entry->getTitle(), htmlspecialchars($filename).'.html', $chapter, true, EPub::EXTERNAL_REF_ADD); | 168 | $book->addChapter($entry->getTitle(), htmlspecialchars($filename).'.html', $chapter, true, EPub::EXTERNAL_REF_ADD); |
171 | } | 169 | } |
172 | 170 | ||
171 | $book->addChapter('Notices', 'Cover2.html', $content_start.$this->getExportInformation('PHPePub').$bookEnd); | ||
172 | |||
173 | return Response::create( | 173 | return Response::create( |
174 | $book->getBook(), | 174 | $book->getBook(), |
175 | 200, | 175 | 200, |