fixed URL management

This commit is contained in:
Fabien Potencier
2012-07-06 21:49:55 +02:00
parent 5ecb02ba15
commit 65e0bd402b
23 changed files with 99 additions and 98 deletions

View File

@@ -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;
}