diff --git a/lib/Portfolio.php b/lib/Portfolio.php index a99e864..cbfbad1 100644 --- a/lib/Portfolio.php +++ b/lib/Portfolio.php @@ -40,7 +40,7 @@ final class Portfolio $galleries = []; foreach (array_diff(scandir("./galleries"), [".", ".."]) as $dir) { $path = "./galleries/$dir"; - $meta = "$gallery_path/metadata.txt"; + $meta = "$path/metadata.txt"; if (!is_file($meta)) { continue; }