From: <var...@us...> - 2014-07-27 17:50:24
|
Revision: 9011 http://sourceforge.net/p/phpwiki/code/9011 Author: vargenau Date: 2014-07-27 17:50:17 +0000 (Sun, 27 Jul 2014) Log Message: ----------- Use __construct Modified Paths: -------------- trunk/lib/Units.php Modified: trunk/lib/Units.php =================================================================== --- trunk/lib/Units.php 2014-07-27 15:53:00 UTC (rev 9010) +++ trunk/lib/Units.php 2014-07-27 17:50:17 UTC (rev 9011) @@ -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); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |