From b1196f2ea90ce9a28480feca24d732d0ad2bc1b8 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 2 Aug 2010 10:08:23 +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@19332 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/gofon/gofon/fonreports/class_fonreport.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gosa-plugins/gofon/gofon/fonreports/class_fonreport.inc b/gosa-plugins/gofon/gofon/fonreports/class_fonreport.inc index c0d3917b2..1e2415551 100644 --- a/gosa-plugins/gofon/gofon/fonreports/class_fonreport.inc +++ b/gosa-plugins/gofon/gofon/fonreports/class_fonreport.inc @@ -32,6 +32,10 @@ class fonreport extends plugin function fonreport (&$config, $ui) { /* Include config object */ + $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->ui = $ui; $this->search_base= $this->config->current['BASE']; -- 2.30.2