From b08937bdb1f1aedec551cd548627f1bd24b4bbe9 Mon Sep 17 00:00:00 2001 From: kholo Date: Sat, 9 Sep 2023 22:11:42 +0200 Subject: [PATCH] Variable names correction --- lib/Portfolio.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,