[Fusionforge-commits] r12324 - trunk/src/common/include

Christian Bayle cbayle at fusionforge.org
Sat Feb 19 22:39:25 CET 2011


Author: cbayle
Date: 2011-02-19 22:39:25 +0100 (Sat, 19 Feb 2011)
New Revision: 12324

Modified:
   trunk/src/common/include/env.inc.php
Log:
Guess config_path, should be a better solution


Modified: trunk/src/common/include/env.inc.php
===================================================================
--- trunk/src/common/include/env.inc.php	2011-02-19 14:51:07 UTC (rev 12323)
+++ trunk/src/common/include/env.inc.php	2011-02-19 21:39:25 UTC (rev 12324)
@@ -46,7 +46,11 @@
 	$gfconfig = '/etc/gforge/';
 } else {
 	$gfcgfile = 'local.inc';
-	$gfconfig = '';
+	if (is_dir('/etc/gforge')){
+                $gfconfig = '/etc/gforge';
+        } else {
+		$gfconfig = '';
+	}
 }
 
 if( !ini_set('include_path', $include_path ) && !set_include_path( $include_path )) {




More information about the Fusionforge-commits mailing list