From: hickert Date: Mon, 2 Aug 2010 10:07:41 +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=c235b28b028ddcf97b373950ca9d6deaa7784de5;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@19316 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc b/gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc index 9c1781906..b3f2f6123 100644 --- a/gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc +++ b/gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc @@ -56,6 +56,7 @@ class opsiGeneric extends plugin { /* Create opsi handle */ + $this->initTime = microtime(TRUE); $this->opsi = new opsi($config); $this->config = $config; @@ -100,6 +101,11 @@ class opsiGeneric extends plugin $this->availableList->setColspecs(array('20px','*','*')); $this->availableList->setHeader(array("",_("Name"),_("Description"))); $this->availableList->setDefaultSortColumn(1); + + // Create statistic table entry + stats::log('plugin', $class = get_class($this), $category = array($this->acl_category), $action = 'open', + $amount = 1, $duration = (microtime(TRUE) - $this->initTime)); + }