mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-18 03:30:55 +01:00
fixed URL management
This commit is contained in:
@@ -29,16 +29,11 @@ class Utils
|
||||
|
||||
foreach ($paths as $path) {
|
||||
$dir['dir'] = $path;
|
||||
$dir['path'] = "$last/$path";
|
||||
$dir['path'] = "$last$path";
|
||||
$breadcrumbs[] = $dir;
|
||||
$last .= '/' . $path;
|
||||
$last .= $path . '/';
|
||||
}
|
||||
|
||||
if (isset($paths[2])) {
|
||||
$breadcrumbs[0]['path'] .= '/' . $paths[1] . '/' . $paths[2];
|
||||
}
|
||||
|
||||
unset($breadcrumbs[1], $breadcrumbs[2]);
|
||||
return $breadcrumbs;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user