Merged in victorsl/processmaker/HOR-1318-31 (pull request #4421)
HOR-1318
This commit is contained in:
@@ -73,6 +73,7 @@ class System
|
|||||||
'error_reporting' => "",
|
'error_reporting' => "",
|
||||||
'display_errors' => 'On',
|
'display_errors' => 'On',
|
||||||
'system_utc_time_zone' => 0,
|
'system_utc_time_zone' => 0,
|
||||||
|
'server_protocol' => '',
|
||||||
'server_hostname_requests_frontend' => ''
|
'server_hostname_requests_frontend' => ''
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -1265,11 +1266,14 @@ class System
|
|||||||
try {
|
try {
|
||||||
$arraySystemConfiguration = self::getSystemConfiguration();
|
$arraySystemConfiguration = self::getSystemConfiguration();
|
||||||
|
|
||||||
|
$serverProtocol = $arraySystemConfiguration['server_protocol'];
|
||||||
|
$serverProtocol = ($serverProtocol != '')? $serverProtocol : ((G::is_https())? 'https' : 'http');
|
||||||
|
|
||||||
$serverHostname = $arraySystemConfiguration['server_hostname_requests_frontend'];
|
$serverHostname = $arraySystemConfiguration['server_hostname_requests_frontend'];
|
||||||
$serverHostname = ($serverHostname != '')? $serverHostname : $_SERVER['HTTP_HOST'];
|
$serverHostname = ($serverHostname != '')? $serverHostname : $_SERVER['HTTP_HOST'];
|
||||||
|
|
||||||
//Return
|
//Return
|
||||||
return ((G::is_https())? 'https://' : 'http://') . $serverHostname;
|
return $serverProtocol . '://' . $serverHostname;
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user