From 56874eb1cb460c8bf822c87f5bdf3ef1ee1d1df4 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 9 Sep 2019 18:59:36 +0200 Subject: [PATCH] Support standard `objectID` for article importer `$additionalData['articleID']` is used by the wordpress importer and kept as a fallback. --- .../files/lib/system/importer/ArticleCommentImporter.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/importer/ArticleCommentImporter.class.php b/wcfsetup/install/files/lib/system/importer/ArticleCommentImporter.class.php index 576622789e..e3ed59d9e0 100644 --- a/wcfsetup/install/files/lib/system/importer/ArticleCommentImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/ArticleCommentImporter.class.php @@ -29,7 +29,7 @@ class ArticleCommentImporter extends AbstractCommentImporter { * @inheritDoc */ public function import($oldID, array $data, array $additionalData = []) { - $articleID = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.article', $additionalData['articleID']); + $articleID = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.article', $data['objectID'] ?? $additionalData['articleID']); if (!$articleID) return 0; $article = new Article($articleID); $contents = $article->getArticleContents(); -- 2.20.1