Sfoglia il codice sorgente

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 9 anni fa
parent
commit
be481b7f1e
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  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']))
 				{