HOR-546 "Peticiones ajax en pmDynaform no funcionan" SOLVED

Issue:
    Peticiones ajax en pmDynaform no funcionan
Cause:
    Uso del flag para excluir el string del protocolo "http://"
Solution:
    Se elimina el flag para excluir el string del protocolo "http://"
This commit is contained in:
Victor Saisa Lopez
2016-03-23 17:37:23 -04:00
parent 7b54442386
commit a795a78757
2 changed files with 10 additions and 12 deletions

View File

@@ -1257,11 +1257,9 @@ class System
/**
* Get the complete name of the server host configured for requests Front-End (e.g. https://127.0.0.1:81)
*
* @param bool $flagHttp Add https/http string
*
* @return string Returns an string with the complete name of the server host configured for requests Front-End
*/
public static function getHttpServerHostnameRequestsFrontEnd($flagHttp = true)
public static function getHttpServerHostnameRequestsFrontEnd()
{
try {
$arraySystemConfiguration = self::getSystemConfiguration();
@@ -1270,7 +1268,7 @@ class System
$serverHostname = ($serverHostname != '')? $serverHostname : $_SERVER['HTTP_HOST'];
//Return
return (($flagHttp)? ((G::is_https())? 'https://' : 'http://') : '') . $serverHostname;
return ((G::is_https())? 'https://' : 'http://') . $serverHostname;
} catch (Exception $e) {
throw $e;
}