Code

Updated item listing
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Apr 2011 08:26:50 +0000 (08:26 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Apr 2011 08:26:50 +0000 (08:26 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20638 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_ItemSelector.inc

index 75ea6db837930b64b3024058e4193f5c8e1c941b..fba6bb191260f3cbe8697669c656869e44b700cc 100644 (file)
@@ -117,7 +117,7 @@ class ItemSelector {
         foreach ($bases as $path => $data) {
 
             // Build path style display
-            $this->pathMapping[$path]= $path == $this->releaseBase? '/' : $data['name'];
+            $this->pathMapping[$path]= preg_replace("/^".preg_quote($this->releaseBase,'/')."/i", "", $path);
             $this->releaseInfo[$path]['name'] = $data['name'];
             $this->releaseInfo[$path]['description'] = $data['desc'];
         }