Variable names correction
parent
82e74fe9f7
commit
b08937bdb1
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue