From 4010c65dbc2d9886c8f6b857d28a997463edcc47 Mon Sep 17 00:00:00 2001 From: Riccardo Di Dato Date: Mon, 19 Sep 2022 23:54:57 +0200 Subject: [PATCH] Typo --- app/public/getImage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/public/getImage.php b/app/public/getImage.php index 4b1a575..8596ff1 100644 --- a/app/public/getImage.php +++ b/app/public/getImage.php @@ -32,8 +32,8 @@ if (array_key_exists("id",$_GET)) { else { $img = GlobalVariables::get("dao")->getFirst("MediaModel",array("id"=>$_GET['id'])); + $basepath = GlobalVariables::get("config")->paths->media; if (!is_null($img) && file_exists($basepath."/".$img->id.".".$img->extension)){ - $basepath = GlobalVariables::get("config")->paths->media; $toMime = $basepath."/".$img->id.".".$img->extension; $thumb = new Imagick($basepath."/".$img->id.".".$img->extension);