From: cajus Date: Mon, 24 Sep 2007 08:04:45 +0000 (+0000) Subject: Updated plugin to make use of new config function X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ceaeec5d3e75b737ac6df7b2403c8a6a63c14c6a;p=gosa.git 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 --- 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 != ""){