[Fusionforge-commits] r14506 - branches/Branch_5_1/src/common/include

Julien HEYMAN jheyman at fusionforge.org
Fri Sep 30 11:45:01 CEST 2011


Author: jheyman
Date: 2011-09-30 11:45:01 +0200 (Fri, 30 Sep 2011)
New Revision: 14506

Modified:
   branches/Branch_5_1/src/common/include/Group.class.php
Log:
Fix homepage if vhost is not used

Modified: branches/Branch_5_1/src/common/include/Group.class.php
===================================================================
--- branches/Branch_5_1/src/common/include/Group.class.php	2011-09-30 09:41:03 UTC (rev 14505)
+++ branches/Branch_5_1/src/common/include/Group.class.php	2011-09-30 09:45:01 UTC (rev 14506)
@@ -318,9 +318,9 @@
 
 			// Check if sys_use_project_vhost for homepage
 			if (forge_get_config('use_project_vhost')) {
-				$homepage = $unix_name.".".$GLOBALS['sys_default_domain'];
+				$homepage = $unix_name.".".forge_get_config('web_host');
 			} else {
-				$homepage = $GLOBALS['sys_default_domain']."/www/".$unix_name."/";
+				$homepage = forge_get_config('web_host')."/www/".$unix_name."/";
 			}
 
 




More information about the Fusionforge-commits mailing list