diff --git a/index.php b/index.php index da67c5d..18fd85a 100644 --- a/index.php +++ b/index.php @@ -117,9 +117,9 @@ if (!empty($curfiles)| !empty($dirs)) { $data['images'][] = $tmp; } } - if (!empty($dirs)) { + if (!empty($d)) { $tmppath = ''; - foreach($dirs as $tmpdir) { + foreach($d as $tmpdir) { $tmppath=$tmppath.DIRECTORY_SEPARATOR.$tmpdir; $data['crumbs'][$tmpdir] = $tmppath; } diff --git a/tpl/gallery.html b/tpl/gallery.html index 2bba68e..0f71913 100644 --- a/tpl/gallery.html +++ b/tpl/gallery.html @@ -8,14 +8,14 @@
{{ $galleryname }} {% if (!empty($crumbs)): %} - {% foreach ($crumbs as $name => $path): %} + {% foreach($crumbs as $name => $path): %}

/

{{ $name }} {% endforeach %} {% endif %}