From: hickert Date: Mon, 2 Aug 2010 10:07:20 +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=1e3c0c998428867f8fe3c115125cb208bd465aec;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@19307 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_userFilterEditor.inc b/gosa-core/include/class_userFilterEditor.inc index 51ce8e95c..5cfc7c073 100644 --- a/gosa-core/include/class_userFilterEditor.inc +++ b/gosa-core/include/class_userFilterEditor.inc @@ -29,6 +29,7 @@ class userFilterEditor extends plugin */ function __construct($entry, $listing) { + $this->listing = &$listing; if($entry){ $this->entry = $entry; @@ -45,6 +46,11 @@ class userFilterEditor extends plugin $this->enable = in_array("enable",$entry['flags']); } $this->orig_name = $this->name; + + // Create statistic table entry + $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)); }