[Fusionforge-commits] FusionForge branch Branch_5_2 updated. 8367ee4c252a4db6d93431c5d889dec511ad194e

Roland Mas lolando at fusionforge.org
Mon Aug 26 14:43:03 CEST 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, Branch_5_2 has been updated
       via  8367ee4c252a4db6d93431c5d889dec511ad194e (commit)
      from  60510933b8dda18daa644c71690db44295c7608d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 8367ee4c252a4db6d93431c5d889dec511ad194e
Author: Roland Mas <lolando at debian.org>
Date:   Wed Aug 7 09:49:39 2013 +0200

    New method to define a boolean config item in one step

diff --git a/src/common/include/config.php b/src/common/include/config.php
index 616342e..98c32f6 100644
--- a/src/common/include/config.php
+++ b/src/common/include/config.php
@@ -245,6 +245,17 @@ function forge_set_config_item_bool ($var, $section) {
 }
 
 /**
+ * Define a new boolean configuration item with given name/section and default value
+ * @param string $var name
+ * @param string $section
+ * @param any $default
+ */
+function forge_define_config_item_bool ($var, $section, $default) {
+	forge_define_config_item ($var, $section, $default);
+	forge_set_config_item_bool ($var, $section);
+}
+
+/**
  * Read a *.ini file and inject its contents into the configuration database
  * @param string $file
  */

-----------------------------------------------------------------------

Summary of changes:
 src/common/include/config.php |   11 +++++++++++
 1 file changed, 11 insertions(+)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list