From: Marcel Werk Date: Sat, 14 May 2022 10:59:48 +0000 (+0200) Subject: Support for meta tags during article import X-Git-Tag: 5.5.0_Beta_3~40 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e7d8a59d6908a402ab075ea46eedc24475c140d6;p=GitHub%2FWoltLab%2FWCF.git Support for meta tags during article import --- diff --git a/wcfsetup/install/files/lib/system/importer/ArticleImporter.class.php b/wcfsetup/install/files/lib/system/importer/ArticleImporter.class.php index f5ab0b6a72..f4b92e4609 100644 --- a/wcfsetup/install/files/lib/system/importer/ArticleImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/ArticleImporter.class.php @@ -67,6 +67,8 @@ class ArticleImporter extends AbstractImporter 'imageID' => $imageID, 'teaserImageID' => $teaserImageID, 'tags' => (!empty($contentData['tags']) ? $contentData['tags'] : []), + 'metaTitle' => (!empty($contentData['metaTitle']) ? $contentData['metaTitle'] : ''), + 'metaDescription' => (!empty($contentData['metaDescription']) ? $contentData['metaDescription'] : ''), ]; } if (empty($contents)) { @@ -113,6 +115,8 @@ class ArticleImporter extends AbstractImporter 'content' => $contentData['content'], 'imageID' => $contentData['imageID'], 'teaserImageID' => $contentData['teaserImageID'], + 'metaTitle' => $contentData['metaTitle'], + 'metaDescription' => $contentData['metaDescription'], ]); // save tags