Merge branch '2.0' into 2.1

This commit is contained in:
Robbie Averill 2019-09-25 15:00:00 -07:00
commit 5cf44c9d02
2 changed files with 2 additions and 2 deletions

View File

@ -874,7 +874,7 @@ class Subsite extends DataObject
}
// If there are no objects, default to the current hostname
return $_SERVER['HTTP_HOST'];
return Director::host();
}
/**

View File

@ -185,7 +185,7 @@ class SubsiteDomain extends DataObject
*/
public function getSubstitutedDomain()
{
$currentHost = $_SERVER['HTTP_HOST'];
$currentHost = Director::host();
// If there are wildcards in the primary domain (not recommended), make some
// educated guesses about what to replace them with: