Skip to content
Snippets Groups Projects
Commit 0722ff6e authored by Björn Schießle's avatar Björn Schießle
Browse files

fix for bug #872: Folders not holding any images are ignored, even if they...

fix for bug #872: Folders not holding any images are ignored, even if they hold subfolders with images
parent a7a861b2
Branches
No related tags found
No related merge requests found
......@@ -136,9 +136,15 @@ class OC_Gallery_Scanner {
if(array_search($path,$paths)===false){
$paths[]=$path;
}
// add sub path also if they don't contain images
while ( ($path = dirname($path)) != '/') {
if(array_search($path,$paths)===false){
$paths[]=$path;
}
}
$subs = dirname($path);
}
sort($paths);
return $paths;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment