From: hickert Date: Mon, 10 May 2010 12:17:50 +0000 (+0000) Subject: Replaced config->search with get_cfg_value X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cc0b68ae4549ff5c9a1323b5681cdc7bce803915;p=gosa.git Replaced config->search with get_cfg_value git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18222 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/opsi/admin/opsi/class_opsi.inc b/gosa-plugins/opsi/admin/opsi/class_opsi.inc index 5010df52c..b79e29d80 100644 --- a/gosa-plugins/opsi/admin/opsi/class_opsi.inc +++ b/gosa-plugins/opsi/admin/opsi/class_opsi.inc @@ -79,11 +79,7 @@ class opsi extends gosaSupportDaemon public function enabled() { - $tmp= $this->config->search("faiManagement", "CLASS",array('menu','tabs')); - if(!empty($tmp) && class_available("faiManagement") && !empty($this->target)){ - return(TRUE); - } - return(FALSE); + return($this->config->pluginEnabled('faiManagement') && !empty($this->target)); }