From ceaeec5d3e75b737ac6df7b2403c8a6a63c14c6a Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 24 Sep 2007 08:04:45 +0000 Subject: [PATCH] Updated plugin to make use of new config function git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7382 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_plugin.inc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/include/class_plugin.inc b/include/class_plugin.inc index 928d751c4..b957567d1 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -405,10 +405,7 @@ class plugin } /* Find hooks entries for this class */ - $command= $this->config->search(get_class($this), "CHECK",array('menu')); - if ($command == "" && isset($this->config->data['TABS'])){ - $command= $this->config->search(get_class($this), "CHECK",array('tabs')); - } + $command= $this->config->search(get_class($this), "CHECK", array('menu', 'tabs')); if ($command != ""){ @@ -569,10 +566,7 @@ class plugin function postcreate($add_attrs= array()) { /* Find postcreate entries for this class */ - $command= $this->config->search(get_class($this), "POSTCREATE",array('menu')); - if ($command == "" && isset($this->config->data['TABS'])){ - $command= $this->config->search(get_class($this), "POSTCREATE",array('tabs')); - } + $command= $this->config->search(get_class($this), "POSTCREATE",array('menu', 'tabs')); if ($command != ""){ -- 2.30.2