[Fusionforge-commits] FusionForge branch master updated. 8b953a41bf87f1018fc72a24d6732fa5fcde81fe

Marc-Etienne VARGENAU vargenau at fusionforge.org
Mon Jul 28 10:28:13 CEST 2014


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, master has been updated
       via  8b953a41bf87f1018fc72a24d6732fa5fcde81fe (commit)
      from  37933830cf71a4829c38eb91bb04fbbfe7477eb6 (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 8b953a41bf87f1018fc72a24d6732fa5fcde81fe
Author: Marc-Etienne Vargenau <Marc-Etienne.Vargenau at alcatel-lucent.com>
Date:   Mon Jul 28 10:27:53 2014 +0200

    wiki: use __construct

diff --git a/src/plugins/wiki/www/lib/Units.php b/src/plugins/wiki/www/lib/Units.php
index c064c2a..401516b 100644
--- a/src/plugins/wiki/www/lib/Units.php
+++ b/src/plugins/wiki/www/lib/Units.php
@@ -23,12 +23,13 @@
 
 class Units
 {
-    function Units()
+    function __construct()
     {
         if (DISABLE_UNITS)
             $this->errcode = 1;
         elseif (defined("UNITS_EXE")) // ignore dynamic check
-            $this->errcode = 0; else
+            $this->errcode = 0;
+        else
             exec("units m2", $o, $this->errcode);
     }
 

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

Summary of changes:
 src/plugins/wiki/www/lib/Units.php |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list