From d27d432c29dc7d4a0b8f41831baefde45f1162ee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 11 May 2022 11:58:56 +0200 Subject: [PATCH] Add update_com.woltlab.wcf_5.6_checkForMultiDomainSetup.php see #4295 --- ...woltlab.wcf_5.6_checkForMultiDomainSetup.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 wcfsetup/install/files/acp/update_com.woltlab.wcf_5.6_checkForMultiDomainSetup.php diff --git a/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.6_checkForMultiDomainSetup.php b/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.6_checkForMultiDomainSetup.php new file mode 100644 index 0000000000..4d51aa4b27 --- /dev/null +++ b/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.6_checkForMultiDomainSetup.php @@ -0,0 +1,17 @@ +getApplicationByID(1)->domainName; +foreach (ApplicationHandler::getInstance()->getApplications() as $application) { + if ($application->domainName !== $domainName) { + if (WCF::getLanguage()->getFixedLanguageCode() === 'de') { + $message = "Die installierten Apps befinden sich auf unterschiedlichen Domains."; + } else { + $message = "The installed apps are running on different domains."; + } + + throw new \RuntimeException($message); + } +} -- 2.20.1