From 14b0bfab18671d77e095bfbea4f103912947c155 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 13 Jul 2016 12:13:58 +0200 Subject: [PATCH] Added default article category --- wcfsetup/install/files/acp/post_install.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wcfsetup/install/files/acp/post_install.php b/wcfsetup/install/files/acp/post_install.php index c606ef1f3b..607c357514 100644 --- a/wcfsetup/install/files/acp/post_install.php +++ b/wcfsetup/install/files/acp/post_install.php @@ -1,4 +1,6 @@ executeAction(); $action = new UserProfileAction([$editor], 'updateUserOnlineMarking'); $action->executeAction(); + +// add default article category +CategoryEditor::create([ + 'objectTypeID' => ObjectTypeCache::getInstance()->getObjectTypeIDByName('com.woltlab.wcf.category', 'com.woltlab.wcf.article.category'), + 'title' => 'Default Category', + 'time' => TIME_NOW +]); -- 2.20.1