From 1b8e59a0effc5d11347f6c248de8b17bbe7f8321 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Sun, 10 Jul 2011 16:00:08 -0400 Subject: Directory links in navigation shouldn't have a trailing '/' --- files/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'files') diff --git a/files/index.php b/files/index.php index e88f0ef23e5..550f23541a0 100644 --- a/files/index.php +++ b/files/index.php @@ -59,10 +59,10 @@ foreach( OC_FILES::getdirectorycontent( $dir ) as $i ){ // Make breadcrumb $breadcrumb = array(); -$pathtohere = "/"; +$pathtohere = ""; foreach( explode( "/", $dir ) as $i ){ if( $i != "" ){ - $pathtohere .= "$i/"; + $pathtohere .= "/$i"; $breadcrumb[] = array( "dir" => $pathtohere, "name" => $i ); } } -- cgit v1.2.3