namespace wcf\system\exporter;
use blog\system\BLOGCore;
-use calendar\system\CALENDARCore;
use gallery\system\GALLERYCore;
use wcf\data\object\type\ObjectTypeCache;
use wcf\data\package\Package;
'5.2.0 Alpha 1',
'>='
);
- $destVersion52 = \version_compare(
- BLOGCore::getInstance()->getPackage()->packageVersion,
- '5.2.0 Alpha 1',
- '>='
- );
$sql = "SELECT packageDir
FROM wcf" . $this->dbNo . "_package
$packageDir = $statement->fetchColumn();
$blogFilePath = FileUtil::getRealPath($this->fileSystemPath . '/' . $packageDir);
- if ($sourceVersion52 && $destVersion52) {
+ if ($sourceVersion52) {
$sql = "SELECT blog.*, language.languageCode, coverPhoto.fileExtension, coverPhoto.fileHash
FROM blog" . $this->dbNo . "_blog blog
LEFT JOIN wcf" . $this->dbNo . "_language language
if ($row['languageCode']) {
$additionalData['languageCode'] = $row['languageCode'];
}
- if ($sourceVersion52 && $destVersion52 && $row['coverPhotoID']) {
+ if ($sourceVersion52 && $row['coverPhotoID']) {
$additionalData['coverPhoto'] = $this->getCoverPhotoPath($blogFilePath, $row);
}
'5.2.0 Alpha 1',
'>='
);
- $destVersion52 = \version_compare(
- BLOGCore::getInstance()->getPackage()->packageVersion,
- '5.2.0 Alpha 1',
- '>='
- );
$sql = "SELECT packageDir
FROM wcf" . $this->dbNo . "_package
if (isset($categories[$row['entryID']])) {
$additionalData['categories'] = $categories[$row['entryID']];
}
- if ($sourceVersion52 && $destVersion52 && $row['coverPhotoID']) {
+ if ($sourceVersion52 && $row['coverPhotoID']) {
$additionalData['coverPhoto'] = $this->getCoverPhotoPath($blogFilePath, $row);
}
'5.2.0 Alpha 1',
'>='
);
- $destVersion52 = \version_compare(
- CALENDARCore::getInstance()->getPackage()->packageVersion,
- '5.2.0 Alpha 1',
- '>='
- );
$sql = "SELECT packageDir
FROM wcf" . $this->dbNo . "_package
// 3.0+
$data['categoryID'] = $row['categoryID'];
}
- if ($sourceVersion52 && $destVersion52 && $row['coverPhotoID']) {
+ if ($sourceVersion52 && $row['coverPhotoID']) {
$additionalData['coverPhoto'] = $this->getCoverPhotoPath($calendarFilePath, $row);
}