From: Marcel Werk Date: Mon, 6 Jun 2016 15:30:04 +0000 (+0200) Subject: Removed collapsible sidebar relics X-Git-Tag: 3.0.0_Beta_1~1510^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=30a65f1cd68ac206db5401512f081c64467146ee;p=GitHub%2FWoltLab%2FWCF.git Removed collapsible sidebar relics --- diff --git a/com.woltlab.wcf/objectType.xml b/com.woltlab.wcf/objectType.xml index d058b18728..f528bd2335 100644 --- a/com.woltlab.wcf/objectType.xml +++ b/com.woltlab.wcf/objectType.xml @@ -19,11 +19,6 @@ - - com.woltlab.wcf.collapsibleSidebar - com.woltlab.wcf.collapsibleContent - - com.woltlab.wcf.article.category diff --git a/wcfsetup/install/files/lib/system/user/collapsible/content/UserCollapsibleSidebarHandler.class.php b/wcfsetup/install/files/lib/system/user/collapsible/content/UserCollapsibleSidebarHandler.class.php deleted file mode 100644 index d814bd6166..0000000000 --- a/wcfsetup/install/files/lib/system/user/collapsible/content/UserCollapsibleSidebarHandler.class.php +++ /dev/null @@ -1,43 +0,0 @@ - - * @package com.woltlab.wcf - * @subpackage system.user.collapsible.content - * @category Community Framework - */ -class UserCollapsibleSidebarHandler extends SingletonFactory implements IAJAXInvokeAction { - /** - * list of methods allowed for remote invoke - * @var string[] - */ - public static $allowInvoke = ['toggle']; - - /** - * Toggles a sidebar. - */ - public function toggle() { - $isOpen = (isset($_POST['isOpen'])) ? intval($_POST['isOpen']) : 1; - $objectID = (isset($_POST['sidebarName'])) ? StringUtil::trim($_POST['sidebarName']) : ''; - if (empty($objectID)) { - throw new UserInputException('sidebarName'); - } - - $objectTypeID = UserCollapsibleContentHandler::getInstance()->getObjectTypeID('com.woltlab.wcf.collapsibleSidebar'); - if ($isOpen) { - UserCollapsibleContentHandler::getInstance()->markAsOpened($objectTypeID, $objectID); - } - else { - UserCollapsibleContentHandler::getInstance()->markAsCollapsed($objectTypeID, $objectID); - } - } -}