diff options
author | Stephan Bergemann <st.bergemann@htw-berlin.de> | 2012-06-14 18:02:07 +0200 |
---|---|---|
committer | Stephan Bergemann <st.bergemann@htw-berlin.de> | 2012-06-14 18:02:07 +0200 |
commit | a3afd51b9401ea03a50d7555ad724a64820c8674 (patch) | |
tree | 763125962acc9ed50e5e240e7556ce74d7bc17f8 /apps/gallery/templates/index.php | |
parent | fa67927eb5084161b0dba26dbbfa92b362985b8e (diff) | |
download | nextcloud-server-a3afd51b9401ea03a50d7555ad724a64820c8674.tar.gz nextcloud-server-a3afd51b9401ea03a50d7555ad724a64820c8674.zip |
fixed one issue with last directory in structure having a lot of
subdirectories and finally some pictures
Diffstat (limited to 'apps/gallery/templates/index.php')
-rw-r--r-- | apps/gallery/templates/index.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/gallery/templates/index.php b/apps/gallery/templates/index.php index e7b7f2e187e..544875a9ef3 100644 --- a/apps/gallery/templates/index.php +++ b/apps/gallery/templates/index.php @@ -122,6 +122,11 @@ if(count($second_level_images)>0) { $tl->addTile(new \OC\Pictures\TileStack($second_level_images, $prev_dir_arr[0])); } +// if last element in the directory was a directory with no second_level_images we also don't want to miss it ... +if(count($fallback_images)>0) { + $tl->addTile(new \OC\Pictures\TileStack($fallback_images, $prev_dir_arr[0])); +} + // and finally our images actually stored in the root folder for($i = 0; $i<count($root_images); $i++) { $tl->addTile(new \OC\Pictures\TileSingle($root_images[$i])); |