From: Tim Düsterhus Date: Wed, 11 May 2022 09:54:21 +0000 (+0200) Subject: Remove DesktopNotificationApplicationSelectOptionType X-Git-Tag: 6.0.0_Alpha_1~1291^2~13 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=684168a1d686701ebd8a758f140fb6c135cf473e;p=GitHub%2FWoltLab%2FWCF.git Remove DesktopNotificationApplicationSelectOptionType This option type was tightly bound to the removed `desktop_notification_package_id` option. --- diff --git a/wcfsetup/install/files/acp/templates/desktopNotificationApplicationSelectOptionType.tpl b/wcfsetup/install/files/acp/templates/desktopNotificationApplicationSelectOptionType.tpl deleted file mode 100644 index 94c2d2d741..0000000000 --- a/wcfsetup/install/files/acp/templates/desktopNotificationApplicationSelectOptionType.tpl +++ /dev/null @@ -1,19 +0,0 @@ -{if $isMultiDomainSetup} - - -{else} - - -{/if} diff --git a/wcfsetup/install/files/lib/system/option/DesktopNotificationApplicationSelectOptionType.class.php b/wcfsetup/install/files/lib/system/option/DesktopNotificationApplicationSelectOptionType.class.php deleted file mode 100644 index 4265ebaacc..0000000000 --- a/wcfsetup/install/files/lib/system/option/DesktopNotificationApplicationSelectOptionType.class.php +++ /dev/null @@ -1,45 +0,0 @@ - - * @package WoltLabSuite\Core\System\Option - */ -class DesktopNotificationApplicationSelectOptionType extends AbstractOptionType -{ - /** - * @inheritDoc - */ - public function getFormElement(Option $option, $value) - { - return WCF::getTPL()->fetch('desktopNotificationApplicationSelectOptionType', 'wcf', [ - 'applications' => ApplicationHandler::getInstance()->getApplications(), - 'isMultiDomainSetup' => ApplicationHandler::getInstance()->isMultiDomainSetup(), - 'option' => $option, - 'value' => $value, - ]); - } - - /** - * @inheritDoc - */ - public function validate(Option $option, $newValue) - { - if (ApplicationHandler::getInstance()->isMultiDomainSetup()) { - if (ApplicationHandler::getInstance()->getApplicationByID($newValue) === null) { - throw new UserInputException($option->optionName, 'validationFailed'); - } - } - } -}