diff --git a/src/Helper/EntriesExport.php b/src/Helper/EntriesExport.php index e749d3200..5fb181fda 100644 --- a/src/Helper/EntriesExport.php +++ b/src/Helper/EntriesExport.php @@ -212,6 +212,9 @@ class EntriesExport if ($entryCount > 1) { $chapterName = "{$i}. {$entry->getTitle()}"; $chapter = $chapterStart . "

({$i}/{$entryCount}) {$entry->getTitle()}

"; + if (null !== $entry->getPreviewPicture()) { + $chapter .= "getPreviewPicture()}\">"; + } } else { $book->setDescription($entry->getUrl()); if (null !== $entry->getPreviewPicture()) { @@ -221,10 +224,6 @@ class EntriesExport $chapter = $chapterStart . "

{$entry->getTitle()}

"; } - if (null !== $entry->getPreviewPicture()) { - // TODO Try to re-use the cover image from before - $chapter .= "getPreviewPicture()}\">"; - } $chapter .= '
' . '
' . $this->translator->trans('entry.view.published_by') . '
' . $authors . '
' .