summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2011-07-10 16:00:08 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2011-07-10 16:00:08 -0400
commit1b8e59a0effc5d11347f6c248de8b17bbe7f8321 (patch)
tree79a6fbc95276faabe7998dbba51169324dca70e3 /files
parent47993fe29a6a7837e39b1e24e03c3b4ac9d7f794 (diff)
downloadnextcloud-server-1b8e59a0effc5d11347f6c248de8b17bbe7f8321.tar.gz
nextcloud-server-1b8e59a0effc5d11347f6c248de8b17bbe7f8321.zip
Directory links in navigation shouldn't have a trailing '/'
Diffstat (limited to 'files')
-rw-r--r--files/index.php4
1 files changed, 2 insertions, 2 deletions
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 );
}
}