<categoryname>general.page</categoryname>
<optiontype>boolean</optiontype>
<defaultvalue>1</defaultvalue>
- <enableoptions>enable_desktop_notifications,desktop_notification_package_id</enableoptions>
+ <enableoptions>enable_desktop_notifications</enableoptions>
</option>
<option name="enable_desktop_notifications">
<categoryname>general.page</categoryname>
<optiontype>boolean</optiontype>
<defaultvalue>1</defaultvalue>
- <enableoptions>desktop_notification_package_id</enableoptions>
- </option>
- <option name="desktop_notification_package_id">
- <categoryname>general.page</categoryname>
- <optiontype>desktopNotificationApplicationSelect</optiontype>
- <defaultvalue>1</defaultvalue>
</option>
<option name="page_logo_link_to_app_default">
<categoryname>general.page</categoryname>
</option>
</options>
</import>
+ <delete>
+ <option name="desktop_notification_package_id"/>
+ </delete>
</data>
\define('MODULE_TROPHY', 1);
\define('ENABLE_DEVELOPER_TOOLS', 0);
\define('FORCE_LOGIN', 0);
-\define('DESKTOP_NOTIFICATION_PACKAGE_ID', 1);
\define('PAGE_LOGO_LINK_TO_APP_DEFAULT', 1);
\define('IMAGE_ALLOW_EXTERNAL_SOURCE', 0);
\define('MESSAGE_ENABLE_TOC', 1);
// The captcha option related to the removed SearchForm was removed in 5.5.
\define('SEARCH_USE_CAPTCHA', 0);
+
+ // Multi-domain setups were removed in 5.6.
+ \define('DESKTOP_NOTIFICATION_PACKAGE_ID', 1);
}
/**
if (!ENABLE_DESKTOP_NOTIFICATIONS) {
return false;
} elseif (ApplicationHandler::getInstance()->isMultiDomainSetup()) {
- $application = ApplicationHandler::getInstance()->getApplicationByID(DESKTOP_NOTIFICATION_PACKAGE_ID);
- // mismatch, default to Core
- if ($application === null) {
- $application = ApplicationHandler::getInstance()->getApplicationByID(1);
- }
+ $application = ApplicationHandler::getInstance()->getApplicationByID(1);
$currentApplication = ApplicationHandler::getInstance()->getActiveApplication();
if ($currentApplication->domainName != $application->domainName) {
use wcf\data\option\category\OptionCategoryList;
use wcf\data\option\Option;
-use wcf\system\application\ApplicationHandler;
use wcf\system\cache\builder\OptionCacheBuilder;
use wcf\system\database\util\PreparedStatementConditionBuilder;
use wcf\system\request\LinkHandler;
continue;
}
- // hide special option for multi-domain setups if not applicable
- if (
- $option->optionName === 'desktop_notification_package_id'
- && !ApplicationHandler::getInstance()->isMultiDomainSetup()
- ) {
- continue;
- }
-
$link = LinkHandler::getInstance()->getLink('Option', [
'id' => $this->getCategoryID($this->getTopCategory($option->categoryName)->parentCategoryName),
], 'optionName=' . $option->optionName . '#category_' . $this->getCategoryName($option->categoryName));
<item name="wcf.acp.option.enable_developer_tools.description"><![CDATA[Aktiviert spezielle Werkzeuge die für die Plugin-Entwicklung verwendet werden. Diese Option sollte im Live-Betrieb abgeschaltet werden.]]></item>
<item name="wcf.acp.option.force_login"><![CDATA[Anmeldung erzwingen]]></item>
<item name="wcf.acp.option.force_login.description"><![CDATA[Besucher werden aufgefordert sich anzumelden, um auf die Inhalte zugreifen zu können.]]></item>
- <item name="wcf.acp.option.desktop_notification_package_id"><![CDATA[Primäre Domain für Desktop-Benachrichtigungen]]></item>
- <item name="wcf.acp.option.desktop_notification_package_id.description"><![CDATA[Desktop-Benachrichtigungen werden nur für die ausgewählte App aktiviert, einschließlich aller anderen Apps die auf der identischen Domain laufen.]]></item>
<item name="wcf.acp.option.page_logo_link_to_app_default"><![CDATA[Seitenlogo verlinkt auf die Startseite der aktiven App]]></item>
<item name="wcf.acp.option.page_logo_link_to_app_default.description"><![CDATA[Deaktiviere{if !LANGUAGE_USE_INFORMAL_VARIANT}n Sie{/if} diese Option, damit das Logo stets auf die globale Startseite verlinkt. Die Deaktivierung entspricht dem Verhalten in früheren Versionen.]]></item>
<item name="wcf.acp.option.image_allow_external_source"><![CDATA[Bilder von externen Seiten erlauben]]></item>
<item name="wcf.upload.error.uploadFailed"><![CDATA[Beim Hochladen der Datei ist ein unbekannter Fehler aufgetreten.]]></item>
</category>
</import>
+<delete>
+ <item name="wcf.acp.option.desktop_notification_package_id"/>
+ <item name="wcf.acp.option.desktop_notification_package_id.description"/>
+</delete>
</language>
<item name="wcf.acp.option.enable_developer_tools.description"><![CDATA[Enables a set of specialized tools that are used for plugin development. Should always be disabled in production environments.]]></item>
<item name="wcf.acp.option.force_login"><![CDATA[Force login]]></item>
<item name="wcf.acp.option.force_login.description"><![CDATA[Visitors are required to log-in themselves to access the page.]]></item>
- <item name="wcf.acp.option.desktop_notification_package_id"><![CDATA[Primary Domain for Desktop Notifications]]></item>
- <item name="wcf.acp.option.desktop_notification_package_id.description"><![CDATA[Desktop Notifications will be enabled for the selected app only, including all other apps that use the exact same domain.]]></item>
<item name="wcf.acp.option.page_logo_link_to_app_default"><![CDATA[Page logo links to the start page of the active app]]></item>
<item name="wcf.acp.option.page_logo_link_to_app_default.description"><![CDATA[Disabling this option will cause the link to always point to the global landing page instead. This option enforces the behavior known from previous versions when disabled.]]></item>
<item name="wcf.acp.option.image_allow_external_source"><![CDATA[Allow images from external sites]]></item>
<item name="wcf.upload.error.uploadFailed"><![CDATA[An unknown error occurred during the upload.]]></item>
</category>
</import>
+<delete>
+ <item name="wcf.acp.option.desktop_notification_package_id"/>
+ <item name="wcf.acp.option.desktop_notification_package_id.description"/>
+</delete>
</language>