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

Julien HEYMAN jheyman at fusionforge.org
Fri Sep 30 11:41:03 CEST 2011


Author: jheyman
Date: 2011-09-30 11:41:03 +0200 (Fri, 30 Sep 2011)
New Revision: 14505

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:22:39 UTC (rev 14504)
+++ branches/Branch_5_1/src/common/include/Group.class.php	2011-09-30 09:41:03 UTC (rev 14505)
@@ -316,6 +316,14 @@
 			return false;
 		} else {
 
+			// Check if sys_use_project_vhost for homepage
+			if (forge_get_config('use_project_vhost')) {
+				$homepage = $unix_name.".".$GLOBALS['sys_default_domain'];
+			} else {
+				$homepage = $GLOBALS['sys_default_domain']."/www/".$unix_name."/";
+			}
+
+
 			db_begin();
 	
 			$res = db_query_params ('
@@ -339,7 +347,7 @@
 						       $unix_name,
 						       htmlspecialchars($description),
 						       $unix_name.".".forge_get_config('web_host'),
-						       $unix_name.".".forge_get_config('web_host'),
+						       $homepage,
 						       'P',
 						       $unix_box,
 						       $scm_box,




More information about the Fusionforge-commits mailing list