From: Cyperghost Date: Tue, 19 Dec 2023 12:16:58 +0000 (+0100) Subject: Select hash and extension X-Git-Tag: 6.0.4~2^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ea34bd8ed07040703b7fb0784b246dfaec8955c2;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.exporter.git Select hash and extension --- diff --git a/files/lib/system/exporter/WBB4xExporter.class.php b/files/lib/system/exporter/WBB4xExporter.class.php index ee9456b..0e57338 100644 --- a/files/lib/system/exporter/WBB4xExporter.class.php +++ b/files/lib/system/exporter/WBB4xExporter.class.php @@ -2760,7 +2760,7 @@ final class WBB4xExporter extends AbstractExporter $conditionBuilder = new PreparedStatementConditionBuilder(); $conditionBuilder->add('event.eventID IN (?)', [$eventIDs]); if ($sourceVersion52 && $destVersion52) { - $sql = "SELECT event.*, language.languageCode + $sql = "SELECT event.*, language.languageCode, coverPhoto.fileExtension, coverPhoto.fileHash FROM calendar" . $this->dbNo . "_event event LEFT JOIN wcf" . $this->dbNo . "_language language ON language.languageID = event.languageID @@ -2820,7 +2820,7 @@ final class WBB4xExporter extends AbstractExporter $data['categoryID'] = $row['categoryID']; } if ($sourceVersion52 && $destVersion52 && $row['coverPhotoID']) { - $additionalData['coverPhoto'] = $this->getCoverPhotoPath($calendarFilePath, $row); + $additionalData['coverPhotoFile'] = $this->getCoverPhotoPath($calendarFilePath, $row); } ImportHandler::getInstance()