From: hickert Date: Mon, 2 Aug 2010 10:08:18 +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=12cf9f732d4313ed383726fcda5db56da7fde7e2;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@19330 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/generic/references/class_ldifViewer.inc b/gosa-core/plugins/generic/references/class_ldifViewer.inc index 9c097194a..24d6d6911 100644 --- a/gosa-core/plugins/generic/references/class_ldifViewer.inc +++ b/gosa-core/plugins/generic/references/class_ldifViewer.inc @@ -6,6 +6,10 @@ class ldifViewer extends plugin function __construct($config, $dn) { + $this->initTime = microtime(TRUE); + stats::log('plugin', $class = get_class($this), $category = array($this->acl_category), $action = 'open', + $amount = 1, $duration = (microtime(TRUE) - $this->initTime)); + $this->config = &$config; $this->dn = $dn; $ldap = $this->config->get_ldap_link();