From bb923cb4a9f42b40c34d9088eba90ba8127d7822 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 22 Jan 2006 23:35:48 +0000 Subject: [PATCH] Navbar is kind of working... --- includes/controller.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/includes/controller.php b/includes/controller.php index 0a2d475..ceed0e5 100644 --- a/includes/controller.php +++ b/includes/controller.php @@ -218,10 +218,18 @@ class Controller $temp = preg_split('#/#', $this->fullpath, -1, PREG_SPLIT_NO_EMPTY); $count = sizeof($temp) - 1; + $donerepos = false; + foreach ($temp AS $val => $item) { - $itembit = $item; - $itembit .= (($count != $val OR $this->cachev->isdir($itembit)) ? '/' : ''); + if ($donerepos != false) + { + $itembit .= $item; + $this->registry->debug($item . " > " . $itembit); + $itembit .= (($count != $val OR $this->cachev->isdir($itembit)) ? '/' : ''); + } + + $donerepos = true; $html .= '' . $item . ''. ($count != $val ? ' / ' : ''); } -- 2.43.5