Code

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

gosa-core/plugins/admin/groups/class_group.inc

index c3da9493e061b9eb5764f228cec62862462b8b60..271a50169f09ef0fd64966ca9e82841b4282274a 100644 (file)
@@ -289,17 +289,8 @@ class group extends plugin
 
 
 
-    if($this->config->search("nagiosaccount", "CLASS",array('menu'))){
-      $smarty->assign("nagios",true);
-    }else{
-      $smarty->assign("nagios",false);
-    }
-    
-    if($this->config->search("phoneAccount", "CLASS",array('menu'))){
-      $smarty->assign("pickupGroup",true);
-    }else{
-      $smarty->assign("pickupGroup",false);
-    }
+    $smarty->assign("nagios", $this->config->pluginEnabled("nagiosAccount"));
+    $smarty->assign("pickupGroup", $this->config->pluginEnabled("phoneAccount"));
 
     /* Manage object add dialog */
     if ($this->userSelect){