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

Marc-Etienne VARGENAU vargenau at fusionforge.org
Wed Aug 21 15:20:50 CEST 2013


Author: vargenau
Date: 2013-08-21 15:20:49 +0200 (Wed, 21 Aug 2013)
New Revision: 17756

Modified:
   trunk/src/common/include/config.php
Log:
Do not use void function result

Modified: trunk/src/common/include/config.php
===================================================================
--- trunk/src/common/include/config.php	2013-08-21 12:57:08 UTC (rev 17755)
+++ trunk/src/common/include/config.php	2013-08-21 13:20:49 UTC (rev 17756)
@@ -229,8 +229,7 @@
  */
 function forge_define_config_item ($var, $section, $default) {
 	$c = FusionForgeConfig::get_instance () ;
-
-	return $c->set_value ($section, $var, $default) ;
+	$c->set_value ($section, $var, $default) ;
 }
 
 /**
@@ -240,8 +239,7 @@
  */
 function forge_set_config_item_bool ($var, $section) {
 	$c = FusionForgeConfig::get_instance () ;
-
-	return $c->mark_as_bool ($section, $var) ;
+	$c->mark_as_bool ($section, $var) ;
 }
 
 /**
@@ -250,8 +248,7 @@
  */
 function forge_read_config_file ($filename) {
 	$c = FusionForgeConfig::get_instance () ;
-
-	return $c->read_config_file ($filename) ;
+	$c->read_config_file ($filename) ;
 }
 
 /**
@@ -285,8 +282,7 @@
 
 function forge_reset_config_item ($var, $section, $default) {
 	$c = FusionForgeConfig::get_instance () ;
-
-	return $c->reset_value ($section, $var, $default) ;
+	$c->reset_value ($section, $var, $default) ;
 }
 
 // Local Variables:




More information about the Fusionforge-commits mailing list