From cfa18df26462a252fbc4a6d39614a008d5314a23 Mon Sep 17 00:00:00 2001 From: Wolfgang Ziegler Date: Mon, 14 Oct 2019 10:21:21 +0200 Subject: [PATCH] Update ::getSiteVariables() with latest version from MultisiteRequestMatcher. --- dotenv/loader.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dotenv/loader.php b/dotenv/loader.php index fa7ac8221f..b14dfeda53 100644 --- a/dotenv/loader.php +++ b/dotenv/loader.php @@ -163,6 +163,9 @@ public static function getSiteVariables($site = NULL, $site_variant = '') { if ($domain = getenv('APP_MULTISITE_DOMAIN')) { $host = $site . getenv('APP_MULTISITE_DOMAIN_PREFIX_SEPARATOR') . $domain; } + elseif (getenv('SITE') && getenv('APP_SITE_DOMAIN')) { + $host = getenv('APP_SITE_DOMAIN'); + } else { $host = getenv('APP_SITE_DOMAIN__' . str_replace('-', '_', $site)); }