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