diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index c4747a2..00003f6 100644 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -737,10 +737,12 @@ class galleriesHelper extends helper { * @return array */ public static function scanDir($dir) { + $exclu = array ("agenda","theme", "modules", "fonts", "icones", "backup"); $dirContent = []; $iterator = new DirectoryIterator($dir); foreach($iterator as $fileInfos) { if($fileInfos->isDot() === false AND $fileInfos->isDir()) { + if(in_array($fileInfos, $exclu)) { continue; } $dirContent[] = $dir . '/' . $fileInfos->getBasename(); $dirContent = array_merge($dirContent, self::scanDir($dir . '/' . $fileInfos->getBasename())); }