From: Marcel Werk Date: Fri, 7 Oct 2016 15:34:28 +0000 (+0200) Subject: Use default value for comments in article importer X-Git-Tag: 3.0.0_Beta_3~50^2~61 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fb69e9c6d420dad27cc043254764fe17907fbf68;p=GitHub%2FWoltLab%2FWCF.git Use default value for comments in article importer --- 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);