From 3346ccdd9e28a76840c2e69414ce50051d54eea7 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 16 Nov 2011 17:03:04 +0100 Subject: [PATCH] Removed obsolete option type --- .../acp/templates/optionTypeCustomselect.tpl | 11 ----- .../option/CustomselectOptionType.class.php | 46 ------------------- 2 files changed, 57 deletions(-) delete mode 100644 wcfsetup/install/files/acp/templates/optionTypeCustomselect.tpl delete mode 100644 wcfsetup/install/files/lib/system/option/CustomselectOptionType.class.php diff --git a/wcfsetup/install/files/acp/templates/optionTypeCustomselect.tpl b/wcfsetup/install/files/acp/templates/optionTypeCustomselect.tpl deleted file mode 100644 index 5752a5aa47..0000000000 --- a/wcfsetup/install/files/acp/templates/optionTypeCustomselect.tpl +++ /dev/null @@ -1,11 +0,0 @@ - \ No newline at end of file diff --git a/wcfsetup/install/files/lib/system/option/CustomselectOptionType.class.php b/wcfsetup/install/files/lib/system/option/CustomselectOptionType.class.php deleted file mode 100644 index 1b536ac5a5..0000000000 --- a/wcfsetup/install/files/lib/system/option/CustomselectOptionType.class.php +++ /dev/null @@ -1,46 +0,0 @@ - - * @package com.woltlab.wcf - * @subpackage system.option - * @category Community Framework - */ -class CustomselectOptionType extends SelectOptionType { - /** - * @see wcf\system\option\IOptionType::getFormElement() - */ - public function getFormElement(Option $option, $value) { - WCF::getTPL()->assign(array( - 'option' => $option, - 'selectOptions' => $option->parseSelectOptions(), - 'value' => $value, - 'customValue' => (!isset($options[$value]) ? $value : '') - )); - - return WCF::getTPL()->fetch('optionTypeCustomselect'); - } - - /** - * @see wcf\system\option\IOptionType::validate() - */ - public function validate(Option $option, $newValue) {} - - /** - * @see wcf\system\option\IOptionType::getData() - */ - public function getData(Option $option, $newValue) { - if (empty($newValue) && isset($_POST['values'][$option->optionName.'_custom'])) { - return $_POST['values'][$option->optionName.'_custom']; - } - return $newValue; - } -} -- 2.20.1