From ec60a3d0efff54bb67dfe7f477cc0856f74733e7 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 2 Aug 2010 10:08:10 +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@19327 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/services/dhcp/class_dhcpNewSectionDialog.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpNewSectionDialog.inc b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpNewSectionDialog.inc index 4aa9b0314..988d03a53 100644 --- a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpNewSectionDialog.inc +++ b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpNewSectionDialog.inc @@ -25,6 +25,10 @@ class dhcpNewSectionDialog extends plugin function dhcpNewSectionDialog($type) { + $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->types= array( "dhcpService" => _("Global options"), "dhcpClass" => _("Class"), "dhcpSubClass" => _("Subclass"), -- 2.30.2