fixed second_level_images issue
This commit is contained in:
parent
e4278574a8
commit
4711c2bb41
|
@ -109,12 +109,11 @@ for($i = 0; $i < count($images); $i++) {
|
||||||
if(count($dir_arr) == 1) { // getting the images in this directory
|
if(count($dir_arr) == 1) { // getting the images in this directory
|
||||||
$root_images[] = $root.$images[$i];
|
$root_images[] = $root.$images[$i];
|
||||||
} else {
|
} else {
|
||||||
if (count($dir_arr) == 2) { // These are the pics in that subdir
|
|
||||||
$second_level_images[] = $root.$images[$i];
|
|
||||||
}
|
|
||||||
if(strcmp($prev_dir_arr[0], $dir_arr[0]) != 0) {
|
if(strcmp($prev_dir_arr[0], $dir_arr[0]) != 0) {
|
||||||
$tl->addTile(new \OC\Pictures\TileStack($second_level_images, $prev_dir_arr[0]));
|
$tl->addTile(new \OC\Pictures\TileStack($second_level_images, $prev_dir_arr[0]));
|
||||||
$second_level_images = array();
|
$second_level_images = array();
|
||||||
|
} else 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
|
// have us a little something to compare against
|
||||||
$previous_element = $images[$i];
|
$previous_element = $images[$i];
|
||||||
|
|
Loading…
Reference in New Issue