Code

Ensure we either call the plugins constructor or manually set the initTime variable...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 2 Aug 2010 10:08:23 +0000 (10:08 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 2 Aug 2010 10:08:23 +0000 (10:08 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19332 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/gofon/gofon/fonreports/class_fonreport.inc

index c0d3917b24d6f606c9045938ca777ca564607da8..1e2415551792a12e65f5e8e0322006a24e784ebf 100644 (file)
@@ -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'];