summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a0e1458)
raw | patch | inline | side by side (parent: a0e1458)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 19 Apr 2011 10:44:22 +0000 (10:44 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 19 Apr 2011 10:44:22 +0000 (10:44 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20748 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc
index 79b0d2e6c72caf4178246ceb6603d9e5aaa24057..ded80c4ce792b4dc5d3745558e5fdec93d399884 100644 (file)
// Append release tags
foreach($sort as $id){
$release = $dist['releases'][$id];
- $names = preg_split("/\//", $release['name']);
-
- $rPath = "";
- $distPath = "/root/{$dist['name']}";
- foreach($names as $rName){
- $rPath .= '/'.$rName;
- $this->dataModel->addItem('Release',$distPath, $rName, $release);
- $distPath .= $rPath;
- }
+ $rPath = $release['name'];
+ $rPath = "/root/{$dist['name']}/$rPath";
+ $rName = preg_replace("/^.*\//","", $rPath);
+ $rPath = preg_replace("/\/[^\/]*$/","", $rPath);
+ $this->dataModel->addItem('Release',$rPath, $rName, $release);
}
}
}