$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 ? ' / ' : '');
}