diff options
author | Stephan Bergemann <st.bergemann@htw-berlin.de> | 2012-06-12 14:06:56 +0200 |
---|---|---|
committer | Stephan Bergemann <st.bergemann@htw-berlin.de> | 2012-06-14 01:27:34 +0200 |
commit | e99a95a756b15028b11871c3c7350066f2751964 (patch) | |
tree | 8cc2c3394967c1022ad3a43254ac9446e4effdd1 /apps/gallery | |
parent | 4711c2bb412749100fa53d8e1684154b87846092 (diff) | |
download | nextcloud-server-e99a95a756b15028b11871c3c7350066f2751964.tar.gz nextcloud-server-e99a95a756b15028b11871c3c7350066f2751964.zip |
now also working for directories only containing one image
Diffstat (limited to 'apps/gallery')
-rw-r--r-- | apps/gallery/templates/index.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/gallery/templates/index.php b/apps/gallery/templates/index.php index 5a9aba9ea07..5cff2c65a00 100644 --- a/apps/gallery/templates/index.php +++ b/apps/gallery/templates/index.php @@ -112,7 +112,8 @@ for($i = 0; $i < count($images); $i++) { if(strcmp($prev_dir_arr[0], $dir_arr[0]) != 0) { $tl->addTile(new \OC\Pictures\TileStack($second_level_images, $prev_dir_arr[0])); $second_level_images = array(); - } else if (count($dir_arr) == 2) { // These are the pics in that subdir + } + if (count($dir_arr) == 2) { // These are the pics in that subdir $second_level_images[] = $root.$images[$i]; } // have us a little something to compare against |