diff --git a/lib/Portfolio.php b/lib/Portfolio.php index 39b8d6b..a99e864 100644 --- a/lib/Portfolio.php +++ b/lib/Portfolio.php @@ -66,8 +66,8 @@ final class Portfolio private function loadImage(string $dir, string $file, string $meta): Image { $path = "$dir/" . rawurlencode($file); - $thumbnail = str_replace(".jpg", "_thb.jpg", $image_path); - list($title, $alt) = file($image_meta); + $thumbnail = str_replace(".jpg", "_thb.jpg", $path); + list($title, $alt) = file($meta); list($width, $height) = getimagesize("$dir/$file"); return new Image( $path,