les albums s'affichent à nouveau

This commit is contained in:
Esenjin 2025-01-09 17:31:27 +01:00
parent 5eed24e223
commit abee696da8

View File

@ -22,6 +22,10 @@ foreach (new DirectoryIterator($currentPath) as $item) {
if ($item->isDot()) continue;
if ($item->isDir()) {
$albumPath = $item->getPathname();
// Ajout de la vérification de sécurité
if (!isSecurePath($albumPath)) continue;
$info = getAlbumInfo($albumPath);
$images = hasSubfolders($albumPath) ?
@ -77,7 +81,7 @@ $config = getSiteConfig();
<p><?php echo nl2br(htmlspecialchars($currentAlbumInfo['description'])); ?></p>
<?php endif; ?>
</div>
<div class="albums-grid">
<?php foreach ($albums as $album): ?>
<a href="<?php echo $album['hasSubfolders'] ? 'albums.php' : 'galeries.php'; ?>?path=<?php echo urlencode($album['path']); ?>"