From fb69e9c6d420dad27cc043254764fe17907fbf68 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 7 Oct 2016 17:34:28 +0200 Subject: [PATCH] Use default value for comments in article importer --- .../files/lib/system/importer/ArticleImporter.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wcfsetup/install/files/lib/system/importer/ArticleImporter.class.php b/wcfsetup/install/files/lib/system/importer/ArticleImporter.class.php index 1cb946fe7a..76b7e0266a 100644 --- a/wcfsetup/install/files/lib/system/importer/ArticleImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/ArticleImporter.class.php @@ -81,6 +81,9 @@ class ArticleImporter extends AbstractImporter { } $data['categoryID'] = $categoryID; + // comments + if (!isset($data['enableComments'])) $data['enableComments'] = ARTICLE_ENABLE_COMMENTS_DEFAULT_VALUE ? 1 : 0; + // save article $article = ArticleEditor::create($data); -- 2.20.1