mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
API Remove deprecated SS_HOST
This commit is contained in:
parent
afd1575267
commit
75b7e19066
@ -575,17 +575,6 @@ class Director implements TemplateGlobalProvider
|
||||
}
|
||||
}
|
||||
|
||||
// Legacy ss4-alpha environment var
|
||||
/**
|
||||
* @todo remove at 4.0.0-beta1
|
||||
* @deprecated 4.0.0-beta1
|
||||
*/
|
||||
$legacyHostname = getenv('SS_HOST');
|
||||
if ($legacyHostname) {
|
||||
Deprecation::notice('4.0', 'SS_HOST will be removed in ss 4.0.0-beta1');
|
||||
return $legacyHostname;
|
||||
}
|
||||
|
||||
// Fail over to server_name (least reliable)
|
||||
return isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : gethostname();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user