Fixing https call for synchronous ajax request
This commit is contained in:
@@ -471,7 +471,8 @@ class Databap extends PhpObject
|
||||
'versionHtml'=>$this->getItemBlock(),
|
||||
'types'=>$this->getTypeInfo('title'),
|
||||
'msg_types'=>self::$MESSAGE_TYPES,
|
||||
'cur_date'=>date(self::DATE_FORMAT));
|
||||
'cur_date'=>date(self::DATE_FORMAT),
|
||||
'serv_name'=>$_GET['serv_name']);
|
||||
$oPage->setTag('constants', $this->jsonConvert($asConstants));
|
||||
|
||||
//Variables
|
||||
|
||||
@@ -41,7 +41,7 @@ class ToolBox
|
||||
|
||||
//Add Server Name
|
||||
$sServerName = array_key_exists('SERVER_NAME', $_SERVER)?$_SERVER['SERVER_NAME']:$_SERVER['PWD'];
|
||||
$sAppPath = $_SERVER['REQUEST_SCHEME'].str_replace(array('http://', 'https://'), '', $sServerName.dirname($_SERVER['SCRIPT_NAME']));
|
||||
$sAppPath = $_SERVER['REQUEST_SCHEME'].'://'.str_replace(array('http://', 'https://'), '', $sServerName.dirname($_SERVER['SCRIPT_NAME']));
|
||||
$_GET['serv_name'] = $sAppPath.(mb_substr($sAppPath, -1)!='/'?'/':'');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user