[Fusionforge-commits] r9599 - trunk/gforge/common/include

Olaf Lenz olenz at libremir.placard.fr.eu.org
Fri Apr 23 17:40:20 CEST 2010


Author: olenz
Date: 2010-04-23 17:40:20 +0200 (Fri, 23 Apr 2010)
New Revision: 9599

Modified:
   trunk/gforge/common/include/config.php
Log:
Fixed config.php to allow config item definition after parsing the config file.

Modified: trunk/gforge/common/include/config.php
===================================================================
--- trunk/gforge/common/include/config.php	2010-04-23 15:40:14 UTC (rev 9598)
+++ trunk/gforge/common/include/config.php	2010-04-23 15:40:20 UTC (rev 9599)
@@ -54,13 +54,9 @@
 	function read_config_file ($file) {
 		if (file_exists($file)) {
 			$sections = parse_ini_file ($file, true) ;
-			if(is_array($sections)) {
+			if (is_array($sections)) {
 				foreach ($sections as $section => $options) {
-					if (!isset (self::$instance->settings[$section]))
-						continue ;
 					foreach ($options as $var => $value) {
-						if (!isset (self::$instance->settings[$section][$var]))
-							continue ;
 						self::$instance->settings[$section][$var] = $value ;
 					}
 				}




More information about the Fusionforge-commits mailing list