From 5f61fc0c077a053781da67f3351c0cd6bfc45f44 Mon Sep 17 00:00:00 2001 From: vargenau Date: Sun, 27 Jul 2014 17:50:17 +0000 Subject: [PATCH] Use __construct git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@9011 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/Units.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Units.php b/lib/Units.php index c064c2a28..401516bc6 100644 --- a/lib/Units.php +++ b/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); } -- 2.45.0