From: Chuck Hagenbuch Date: Fri, 27 Mar 2009 20:15:51 +0000 (-0400) Subject: build the path up so that breadcrumb paths work X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=8f8ff833f3ad9dc927940c1777598d2cd18ebff5;p=horde.git build the path up so that breadcrumb paths work --- diff --git a/chora/lib/Chora.php b/chora/lib/Chora.php index 4f1420b62..2aaf578eb 100644 --- a/chora/lib/Chora.php +++ b/chora/lib/Chora.php @@ -184,9 +184,14 @@ class Chora $dirs = explode('/', $where); $dir_count = count($dirs) - 1; + $path = ''; foreach ($dirs as $i => $dir) { + if (!empty($path)) { + $path .= '/'; + } + $path .= $dir; if (!empty($dir)) { - $bar .= '/ '. Text::htmlallspaces($dir) . ' '; + $bar .= '/ '. Text::htmlallspaces($dir) . ' '; } }