From 714ea1f4aeac38ccb2d3a13fae9b24b1d29cc2da Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 10 May 2010 12:17:46 +0000 Subject: [PATCH] Replaced config->search with get_cfg_value git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18221 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/admin/groups/class_group.inc | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) 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){ -- 2.30.2