HOR-4816
This commit is contained in:
@@ -42,7 +42,7 @@ class WebEntry
|
||||
public function __construct()
|
||||
{
|
||||
$this->pathDataPublic = defined("PATH_DATA_PUBLIC") ? PATH_DATA_PUBLIC : \G::$pathDataPublic;
|
||||
$this->httpHost = isset($_SERVER["HTTP_HOST"]) ? $_SERVER["HTTP_HOST"] : \G::$httpHost;
|
||||
$this->httpHost = System::getServerHost();
|
||||
$this->sysSys = !empty(config("system.workspace")) ? config("system.workspace") : \G::$sysSys;
|
||||
$this->sysSkin = defined("SYS_SKIN") ? SYS_SKIN : \G::$sysSkin;
|
||||
try {
|
||||
@@ -848,9 +848,7 @@ class WebEntry
|
||||
{
|
||||
try {
|
||||
if ((!isset($record['WE_LINK_GENERATION']) || $record['WE_LINK_GENERATION']==='DEFAULT') && $record["WE_METHOD"] == "WS") {
|
||||
$http = (\G::is_https())? "https://" : "http://";
|
||||
$url = $http . $_SERVER["HTTP_HOST"] . "/sys" . config("system.workspace") . "/" . SYS_LANG . "/" . SYS_SKIN . "/" . $record["PRO_UID"];
|
||||
|
||||
$url = System::getServerMainPath() . "/" . $record["PRO_UID"];
|
||||
$record["WE_DATA"] = $url . "/" . $record["WE_DATA"];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user