Code

Replaced config->search with get_cfg_value
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 May 2010 12:17:50 +0000 (12:17 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 May 2010 12:17:50 +0000 (12:17 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18222 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/opsi/admin/opsi/class_opsi.inc

index 5010df52c2ee8f86de39275857d3a846cc88b0ab..b79e29d80d7c94316861e08958d3fba8ac663246 100644 (file)
@@ -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));
   }