From: hickert Date: Mon, 10 May 2010 11:19:25 +0000 (+0000) Subject: Updated check for activated faiManagement X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7ac995f3e67a8927d4637c03b69ce3b2292f2f8a;p=gosa.git Updated check for activated faiManagement git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18201 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/applications/class_applicationGeneric.inc b/gosa-plugins/goto/admin/applications/class_applicationGeneric.inc index f31c8b6c0..d9b21b388 100644 --- a/gosa-plugins/goto/admin/applications/class_applicationGeneric.inc +++ b/gosa-plugins/goto/admin/applications/class_applicationGeneric.inc @@ -430,9 +430,6 @@ class application extends plugin /* Check for existing application */ $ldap= $this->config->get_ldap_link(); $ldap->cd($this->config->current["BASE"]); - - $tmp = $this->config->search("faiManagement", "CLASS",array('menu','tabs')); - if($this->is_release()){ $base = $this->parent->parent->app_release; }else{ @@ -511,11 +508,9 @@ class application extends plugin if(isset($this->parent->parent)){ return($this->parent->parent->IsReleaseManagementActivated()); }else{ + /* Check if we should enable the release selection */ - $tmp = $this->config->search("faiManagement", "CLASS",array('menu','tabs')); - if(!empty($tmp)){ - return(true); - } + return($this->config->pluginEnabled("faiManagement")); } return(FALSE); }