From 6e4aa12f8e9222047129db297c7e0f4a575b23b9 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 6 Sep 2017 11:39:28 +0200 Subject: [PATCH] Limit desktop notifications to a single domain for multi-domain environments Closes #2411 --- com.woltlab.wcf/option.xml | 8 +++- .../templates/headIncludeJavaScript.tpl | 2 +- com.woltlab.wcf/templates/login.tpl | 2 +- constants.php | 1 + ...otificationApplicationSelectOptionType.tpl | 19 +++++++++ .../files/acp/templates/rescueMode.tpl | 2 +- .../install/files/lib/system/WCF.class.php | 24 +++++++++++ .../application/ApplicationHandler.class.php | 28 +++++++++++++ ...ationApplicationSelectOptionType.class.php | 40 +++++++++++++++++++ .../OptionACPSearchResultProvider.class.php | 7 ++++ wcfsetup/install/lang/de.xml | 2 + wcfsetup/install/lang/en.xml | 2 + 12 files changed, 133 insertions(+), 4 deletions(-) create mode 100644 wcfsetup/install/files/acp/templates/desktopNotificationApplicationSelectOptionType.tpl create mode 100644 wcfsetup/install/files/lib/system/option/DesktopNotificationApplicationSelectOptionType.class.php diff --git a/com.woltlab.wcf/option.xml b/com.woltlab.wcf/option.xml index 325202450a..5568748776 100644 --- a/com.woltlab.wcf/option.xml +++ b/com.woltlab.wcf/option.xml @@ -499,12 +499,18 @@ general.page boolean 1 - enable_desktop_notifications + enable_desktop_notifications,desktop_notification_package_id +