Fix construct_breadcrumb()
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 07:06:37 +0000 (07:06 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 07:06:37 +0000 (07:06 +0000)
includes/node.php

index 2c815b94ecaa2d8ab861c7de6ee05c5e5e44e9d2..f8d6146fb5b9764e42fe0f17db3ee96c2b895b7c 100644 (file)
@@ -239,14 +239,13 @@ class Node_Controller
        function construct_breadcrumb()
        {
                $html = '/ ';
-               $itembit = '/';
                
                $temp = preg_split('#/#', $this->fullpath, -1, PREG_SPLIT_NO_EMPTY);
                $count = sizeof($temp) - 1;
                
                foreach ($temp AS $val => $item)
                {
-                       $itembit .= $item;
+                       $itembit = $item;
                        $itembit .= (($count != $val OR $this->cachev->isdir($itembit)) ? '/' : '');
                        $html .= '<a href="' . $this->href_struct('browse.php' . $this->revstr, ($val == 0 ? '' : $itembit)) . '">' . $item . '</a>'. ($count != $val ? ' / ' : '');
                }