Add Directory Breadcrumbs
This commit is contained in:
parent
4da80cbc22
commit
88dbc8d28e
1 changed files with 3 additions and 2 deletions
|
@ -117,9 +117,10 @@ if (!empty($curfiles)| !empty($dirs)) {
|
||||||
$data['images'][] = $tmp;
|
$data['images'][] = $tmp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!empty($d)) {
|
if (!empty($dir)) {
|
||||||
|
$tmpdirs = array_filter(explode(DIRECTORY_SEPARATOR, $dir));
|
||||||
$tmppath = '';
|
$tmppath = '';
|
||||||
foreach($d as $tmpdir) {
|
foreach($tmpdirs as $tmpdir) {
|
||||||
$tmppath=$tmppath.DIRECTORY_SEPARATOR.$tmpdir;
|
$tmppath=$tmppath.DIRECTORY_SEPARATOR.$tmpdir;
|
||||||
$data['crumbs'][$tmpdir] = $tmppath;
|
$data['crumbs'][$tmpdir] = $tmppath;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue