From: hickert Date: Mon, 10 May 2010 12:17:46 +0000 (+0000) Subject: Replaced config->search with get_cfg_value X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=714ea1f4aeac38ccb2d3a13fae9b24b1d29cc2da;p=gosa.git Replaced config->search with get_cfg_value git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18221 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/groups/class_group.inc b/gosa-core/plugins/admin/groups/class_group.inc index c3da9493e..271a50169 100644 --- a/gosa-core/plugins/admin/groups/class_group.inc +++ b/gosa-core/plugins/admin/groups/class_group.inc @@ -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){