From: Marcel Werk Date: Tue, 21 Sep 2021 09:51:11 +0000 (+0200) Subject: Blog cover photo import (Invision) X-Git-Tag: 5.4.8_dev_1~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0cef7a9652bd082c5130dbcbd33f7751108af52e;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.exporter.git Blog cover photo import (Invision) --- diff --git a/files/lib/system/exporter/IPB4xExporter.class.php b/files/lib/system/exporter/IPB4xExporter.class.php index 5943b68..0ad5a89 100644 --- a/files/lib/system/exporter/IPB4xExporter.class.php +++ b/files/lib/system/exporter/IPB4xExporter.class.php @@ -1532,11 +1532,17 @@ class IPB4xExporter extends AbstractExporter 'isFeatured' => $row['blog_pinned'], ]; + $additionalData = []; + if (!empty($row['blog_cover_photo'])) { + $additionalData['coverPhoto'] = $this->fileSystemPath . 'uploads/' . $row['blog_cover_photo']; + } + ImportHandler::getInstance() ->getImporter('com.woltlab.blog.blog') ->import( $row['blog_id'], - $data + $data, + $additionalData ); } }