From: hickert Date: Mon, 2 Aug 2010 10:07:29 +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=f2260ab0202f60491ed96f9eacdb195cdd0a7da8;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@19311 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/ldapmanager/addons/ldapmanager/class_import.inc b/gosa-plugins/ldapmanager/addons/ldapmanager/class_import.inc index c8787ac52..38f0a5aba 100644 --- a/gosa-plugins/ldapmanager/addons/ldapmanager/class_import.inc +++ b/gosa-plugins/ldapmanager/addons/ldapmanager/class_import.inc @@ -16,9 +16,14 @@ class ldifimport extends plugin function ldifimport (&$config, $dn= NULL) { /* Include config object */ + $this->initTime = microtime(TRUE); $this->config= &$config; $this->ui = get_userinfo(); + + stats::log('plugin', $class = get_class($this), $category = array($this->acl_category), $action = 'open', + $amount = 1, $duration = (microtime(TRUE) - $this->initTime)); + } function execute()