Navbar is kind of working...
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 23:35:48 +0000 (23:35 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 23:35:48 +0000 (23:35 +0000)
includes/controller.php

index 0a2d475d2513048441b63958e643ec93f67ed087..ceed0e542a8168af0969bbf846814250868f0e37 100644 (file)
@@ -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 .= '<a href="' . $this->href_struct('browse.php' . $this->revstr, ($val == 0 ? '' : $itembit)) . '">' . $item . '</a>'. ($count != $val ? ' / ' : '');
                }