Merge pull request #3023 from mart-e/epub-notice-at-the-end

Add export notice at the end of the epub
This commit is contained in:
Jérémy Benoist 2017-04-05 10:20:19 +02:00 committed by GitHub
commit 656395fde6

View 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,