les albums s'affichent à nouveau
This commit is contained in:
parent
5eed24e223
commit
abee696da8
@ -22,6 +22,10 @@ foreach (new DirectoryIterator($currentPath) as $item) {
|
|||||||
if ($item->isDot()) continue;
|
if ($item->isDot()) continue;
|
||||||
if ($item->isDir()) {
|
if ($item->isDir()) {
|
||||||
$albumPath = $item->getPathname();
|
$albumPath = $item->getPathname();
|
||||||
|
|
||||||
|
// Ajout de la vérification de sécurité
|
||||||
|
if (!isSecurePath($albumPath)) continue;
|
||||||
|
|
||||||
$info = getAlbumInfo($albumPath);
|
$info = getAlbumInfo($albumPath);
|
||||||
|
|
||||||
$images = hasSubfolders($albumPath) ?
|
$images = hasSubfolders($albumPath) ?
|
||||||
@ -77,7 +81,7 @@ $config = getSiteConfig();
|
|||||||
<p><?php echo nl2br(htmlspecialchars($currentAlbumInfo['description'])); ?></p>
|
<p><?php echo nl2br(htmlspecialchars($currentAlbumInfo['description'])); ?></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="albums-grid">
|
<div class="albums-grid">
|
||||||
<?php foreach ($albums as $album): ?>
|
<?php foreach ($albums as $album): ?>
|
||||||
<a href="<?php echo $album['hasSubfolders'] ? 'albums.php' : 'galeries.php'; ?>?path=<?php echo urlencode($album['path']); ?>"
|
<a href="<?php echo $album['hasSubfolders'] ? 'albums.php' : 'galeries.php'; ?>?path=<?php echo urlencode($album['path']); ?>"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user