This commit is contained in:
2022-09-19 23:54:57 +02:00
parent e2b8470e54
commit 4010c65dbc
+1 -1
View File
@@ -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);