This commit is contained in:
Kekskurse 2021-01-17 03:40:00 +01:00
parent 0d558b2ab0
commit 0578d5e3af

View file

@ -43,7 +43,7 @@ class PublicController extends BaseController
if(!array_key_exists($sizeName, self::$size)) {
abort(400, "Size not exists");
}
$size = (int)$this->size[$sizeName];
$size = (int)self::$size[$sizeName];
$image = Image::query()->where("id", "=", $image_id)->firstOrFail();
$gallery = Gallery::query()->where("url", "=", $gallery_url)->firstOrFail();