From 3796e9e4d2e041f3570fcc2a1aad0c926b14f7aa Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 2 Aug 2010 10:07:25 +0000 Subject: [PATCH] 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@19309 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/ldapmanager/addons/ldapmanager/class_export.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gosa-plugins/ldapmanager/addons/ldapmanager/class_export.inc b/gosa-plugins/ldapmanager/addons/ldapmanager/class_export.inc index b223e7453..296b5045a 100644 --- a/gosa-plugins/ldapmanager/addons/ldapmanager/class_export.inc +++ b/gosa-plugins/ldapmanager/addons/ldapmanager/class_export.inc @@ -15,6 +15,8 @@ class ldifexport extends plugin function ldifexport (&$config, $dn= NULL) { + + $this->initTime = microtime(TRUE); /* Include config object */ $this->config= &$config; $this->ui = get_userinfo(); @@ -23,6 +25,8 @@ class ldifexport extends plugin $this->baseSelector->setSubmitButton(false); $this->baseSelector->setHeight(300); $this->baseSelector->update(true); + stats::log('plugin', $class = get_class($this), $category = array($this->acl_category), $action = 'open', + $amount = 1, $duration = (microtime(TRUE) - $this->initTime)); } -- 2.30.2