From 7ea65cfa9fbdbf53c408670b7fe30e015d9e7a2e Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 22 Jan 2006 02:54:52 +0000 Subject: [PATCH] Got construct_breadcrumb() to work --- includes/node.php | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/includes/node.php b/includes/node.php index deca95e..9b6693a 100644 --- a/includes/node.php +++ b/includes/node.php @@ -132,26 +132,21 @@ class Node_Controller * * @access public * - * @param string Universal path - * @param bool Add trailing slash - * * @return string Breadcrumb HTML */ - function construct_breadcrumb($path, $doslash = true) + function construct_breadcrumb() { - global $viewsvn, $cachev; - $html = '/ '; $itembit = '/'; - $temp = preg_split('#/#', $path, -1, PREG_SPLIT_NO_EMPTY); + $temp = preg_split('#/#', $this->path, -1, PREG_SPLIT_NO_EMPTY); $count = count($temp) - 1; foreach ($temp AS $val => $item) { $itembit .= $item; - $itembit .= (($count != $val OR $cachev->isdir($itembit)) ? '/' : ''); - $html .= '' . $item . ''. ($count != $val ? ' / ' : ''); + $itembit .= (($count != $val OR $this->cachev->isdir($itembit)) ? '/' : ''); + $html .= '' . $item . ''. ($count != $val ? ' / ' : ''); } return $html; -- 2.43.5