]> source.dussan.org Git - nextcloud-server.git/commitdiff
Directory links in navigation shouldn't have a trailing '/'
authorMichael Gapczynski <GapczynskiM@gmail.com>
Sun, 10 Jul 2011 20:00:08 +0000 (16:00 -0400)
committerMichael Gapczynski <GapczynskiM@gmail.com>
Sun, 10 Jul 2011 20:00:08 +0000 (16:00 -0400)
.gitignore
files/index.php

index 6a1ffc21cae828415898df6422d20173408e0031..94de5aec80375aaa6c7a2f6a87e03f002953664e 100644 (file)
@@ -24,3 +24,4 @@ RCS/*
 # Lokalize
 *lokalize*
 
+.project
index e88f0ef23e50aba558439971f0956b2b78bede07..550f23541a07f374753e1d5c196ac6dcca2a9e3f 100644 (file)
@@ -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 );
        }
 }