From: Marcel Werk Date: Fri, 5 Jun 2020 11:06:12 +0000 (+0200) Subject: Removed obsolete code X-Git-Tag: 5.2.7~17 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=db9c932aaa63a51a896943ecf15d0af6eef3e9b8;p=GitHub%2FWoltLab%2FWCF.git Removed obsolete code --- diff --git a/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php b/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php index 0eb84dadb4..ac1f7dc991 100644 --- a/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php @@ -3,7 +3,6 @@ namespace wcf\acp\form; use wcf\data\article\category\ArticleCategory; use wcf\data\article\Article; use wcf\data\article\ArticleAction; -use wcf\data\category\CategoryNode; use wcf\data\category\CategoryNodeTree; use wcf\data\label\group\ViewableLabelGroup; use wcf\data\language\Language; @@ -503,12 +502,6 @@ class ArticleAddForm extends AbstractForm { SmileyCache::getInstance()->assignVariables(); - $accessibleCategoryIDs = ArticleCategory::getAccessibleCategoryIDs(); - $categoryNodeList = (new CategoryNodeTree('com.woltlab.wcf.article.category'))->getIterator(); - $categoryNodes = array_filter(iterator_to_array($categoryNodeList), function(CategoryNode $categoryNode) use (&$accessibleCategoryIDs) { - return in_array($categoryNode->categoryID, $accessibleCategoryIDs); - }); - WCF::getTPL()->assign([ 'action' => 'add', 'isMultilingual' => $this->isMultilingual,