Browse Source

Directory links in navigation shouldn't have a trailing '/'

tags/v3.0
Michael Gapczynski 13 years ago
parent
commit
1b8e59a0ef
2 changed files with 3 additions and 2 deletions
  1. 1
    0
      .gitignore
  2. 2
    2
      files/index.php

+ 1
- 0
.gitignore View File

@@ -24,3 +24,4 @@ RCS/*
# Lokalize
*lokalize*

.project

+ 2
- 2
files/index.php View 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 );
}
}

Loading…
Cancel
Save