Skip to content

Commit

Permalink
Update ::getSiteVariables() with latest version from MultisiteRequest…
Browse files Browse the repository at this point in the history
…Matcher.
  • Loading branch information
fago authored Oct 14, 2019
1 parent 3336f90 commit cfa18df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dotenv/loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit cfa18df

Please sign in to comment.