Variable names correction

main
Nicolas Ong 2023-09-09 22:11:42 +02:00
parent 82e74fe9f7
commit b08937bdb1
1 changed files with 2 additions and 2 deletions

View File

@ -66,8 +66,8 @@ final class Portfolio
private function loadImage(string $dir, string $file, string $meta): Image private function loadImage(string $dir, string $file, string $meta): Image
{ {
$path = "$dir/" . rawurlencode($file); $path = "$dir/" . rawurlencode($file);
$thumbnail = str_replace(".jpg", "_thb.jpg", $image_path); $thumbnail = str_replace(".jpg", "_thb.jpg", $path);
list($title, $alt) = file($image_meta); list($title, $alt) = file($meta);
list($width, $height) = getimagesize("$dir/$file"); list($width, $height) = getimagesize("$dir/$file");
return new Image( return new Image(
$path, $path,