Fixed regression introduced by [3857] : setup not working anymore (js files could not be loaded anymore)

SVN:trunk[3890]
This commit is contained in:
Romain Quetiez
2016-01-28 11:05:13 +00:00
parent 1f4ca07b5f
commit e7759aa79a

View File

@@ -491,7 +491,11 @@ class utils
if ($sUrl === null)
{
$sUrl = self::GetConfig()->Get('app_root_url');
if (strpos($sUrl, SERVER_NAME_PLACEHOLDER) > -1)
if ($sUrl == '')
{
$sUrl = self::GetDefaultUrlAppRoot();
}
elseif (strpos($sUrl, SERVER_NAME_PLACEHOLDER) > -1)
{
if (isset($_SERVER['SERVER_NAME']))
{