From 2220539e97386b50de3df460f853f4978e22c520 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 12 Feb 2008 10:22:07 +0000 Subject: [PATCH] Updated FAI group release handling. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8852 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/fai/admin/fai/class_FAI.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/fai/admin/fai/class_FAI.inc b/gosa-plugins/fai/admin/fai/class_FAI.inc index ea09ac05c..812c4a26f 100644 --- a/gosa-plugins/fai/admin/fai/class_FAI.inc +++ b/gosa-plugins/fai/admin/fai/class_FAI.inc @@ -696,15 +696,17 @@ class FAI } - static function copy_FAI_group_releases($source_release , $destination_name, $type ) + static function copy_FAI_group_releases($source_release , $destination_name, $type ="" ) { global $config; $start = microtime(TRUE); + $source_release = trim($source_release,"/"); echo "

".sprintf(_("Creating group application release for %s"),$destination_name)."

"; $sub_releases = array(); $source_dn = ""; + $tmp = split("\/",$source_release); foreach($tmp as $part){ if(empty($part)){ @@ -825,7 +827,7 @@ class FAI $to_copy[$attrs['dn']] = $destination; } } - + /* At least create the menu objects object */ $plug = new plugin($config); foreach($to_copy as $source => $destination){ -- 2.30.2