From 8f8ff833f3ad9dc927940c1777598d2cd18ebff5 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Fri, 27 Mar 2009 16:15:51 -0400 Subject: [PATCH] build the path up so that breadcrumb paths work --- chora/lib/Chora.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) . ' '; } } -- 2.11.0