From: hickert Date: Mon, 2 Aug 2010 10:08:25 +0000 (+0000) Subject: Ensure we either call the plugins constructor or manually set the initTime variable... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=52dfaa44f1a1ae638d4400492c3bb0dadb6e5e9c;p=gosa.git Ensure we either call the plugins constructor or manually set the initTime variable for the new statistics plugin. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19333 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/connectivity/personal/connectivity/class_connectivity.inc b/gosa-plugins/connectivity/personal/connectivity/class_connectivity.inc index e5d2250cc..2641c4f59 100644 --- a/gosa-plugins/connectivity/personal/connectivity/class_connectivity.inc +++ b/gosa-plugins/connectivity/personal/connectivity/class_connectivity.inc @@ -30,6 +30,7 @@ class connectivity extends plugin function connectivity (&$config, $dn= NULL,$parent =NULL) { /* Preseed permissions */ + $this->initTime = microtime(TRUE); $this->dn= $dn; $ui= get_userinfo(); @@ -51,6 +52,11 @@ class connectivity extends plugin $this->plugin[$name]-> set_acl_category("users"); $this->plugin[$name]-> set_acl_base($this->dn); } + + // Create statistic table entry + stats::log('plugin', $class = get_class($this), $category = array($this->acl_category), $action = 'open', + $amount = 1, $duration = (microtime(TRUE) - $this->initTime)); + } function execute()