Explorar o código

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3890 a333f486-631f-4898-b8df-5754b55c2be0
romainq %!s(int64=9) %!d(string=hai) anos
pai
achega
be481b7f1e
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      application/utils.inc.php

+ 5 - 1
application/utils.inc.php

@@ -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']))
 				{