Directory links in navigation shouldn't have a trailing '/'
This commit is contained in:
parent
47993fe29a
commit
1b8e59a0ef
|
@ -24,3 +24,4 @@ RCS/*
|
||||||
# Lokalize
|
# Lokalize
|
||||||
*lokalize*
|
*lokalize*
|
||||||
|
|
||||||
|
.project
|
||||||
|
|
|
@ -59,10 +59,10 @@ foreach( OC_FILES::getdirectorycontent( $dir ) as $i ){
|
||||||
|
|
||||||
// Make breadcrumb
|
// Make breadcrumb
|
||||||
$breadcrumb = array();
|
$breadcrumb = array();
|
||||||
$pathtohere = "/";
|
$pathtohere = "";
|
||||||
foreach( explode( "/", $dir ) as $i ){
|
foreach( explode( "/", $dir ) as $i ){
|
||||||
if( $i != "" ){
|
if( $i != "" ){
|
||||||
$pathtohere .= "$i/";
|
$pathtohere .= "/$i";
|
||||||
$breadcrumb[] = array( "dir" => $pathtohere, "name" => $i );
|
$breadcrumb[] = array( "dir" => $pathtohere, "name" => $i );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue