Add Directory Breadcrumbs

This commit is contained in:
seiichiro 2022-01-11 20:10:23 +01:00
parent 4da80cbc22
commit 88dbc8d28e

View file

@ -117,9 +117,10 @@ if (!empty($curfiles)| !empty($dirs)) {
$data['images'][] = $tmp;
}
}
if (!empty($d)) {
if (!empty($dir)) {
$tmpdirs = array_filter(explode(DIRECTORY_SEPARATOR, $dir));
$tmppath = '';
foreach($d as $tmpdir) {
foreach($tmpdirs as $tmpdir) {
$tmppath=$tmppath.DIRECTORY_SEPARATOR.$tmpdir;
$data['crumbs'][$tmpdir] = $tmppath;
}