From: Tim Düsterhus Date: Wed, 11 May 2022 09:58:56 +0000 (+0200) Subject: Add update_com.woltlab.wcf_5.6_checkForMultiDomainSetup.php X-Git-Tag: 6.0.0_Alpha_1~1291^2~12 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d27d432c29dc7d4a0b8f41831baefde45f1162ee;p=GitHub%2FWoltLab%2FWCF.git Add update_com.woltlab.wcf_5.6_checkForMultiDomainSetup.php see #4295 --- 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); + } +}