From 3c62fddd33fb572f28975026d2e1fe6fbe77ba10 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 10 Jul 2006 07:08:55 +0000 Subject: [PATCH] Updated faiSummary tab git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4057 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiSummaryTab.inc | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/plugins/admin/fai/class_faiSummaryTab.inc b/plugins/admin/fai/class_faiSummaryTab.inc index 42783ab36..12eaacdba 100644 --- a/plugins/admin/fai/class_faiSummaryTab.inc +++ b/plugins/admin/fai/class_faiSummaryTab.inc @@ -145,18 +145,10 @@ class faiSummaryTab extends plugin{ /* returns an array with all possibly release types */ function getBranches($base = false,$prefix = "") { - $ret = array("main"=>"/"); - $ldap = $this->config->get_ldap_link(); - $ldap->cd($this->config->current['BASE']); - $ldap->search("(objectClass=FAIbranch)",array("dn","cn","ou")); - while($attrs = $ldap->fetch()){ - if((isset($attrs['ou']))&&($attrs['dn']!=$base)){ - $name = convert_department_dn(preg_replace("/,ou=fai,.*$/","",$attrs['dn'])); - $ret[$attrs['dn']] = $name; - $ret = array_merge($ret,$this->getBranches($attrs['dn'],$prefix.$attrs['ou'][0]."/")); - } + if(!$base){ + $base = $this->config->current['BASE']; } - return($ret); + return(get_all_releases_from_base($base)); } -- 2.30.2