From: Hypolite Petovan Date: Sun, 20 Nov 2022 22:07:08 +0000 (-0500) Subject: Fix string interpolation in Model\Photo::upload X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6dcc964ed873ef3a4f601b30cd05657ca4c44186;p=friendica.git Fix string interpolation in Model\Photo::upload --- diff --git a/src/Model/Photo.php b/src/Model/Photo.php index 550d802e81..7c620b0ad4 100644 --- a/src/Model/Photo.php +++ b/src/Model/Photo.php @@ -1130,8 +1130,8 @@ class Photo $picture['height'] = $photo['height']; $picture['type'] = $photo['type']; $picture['albumpage'] = DI::baseUrl() . '/photos/' . $user['nickname'] . '/image/' . $resource_id; - $picture['picture'] = DI::baseUrl() . '/photo/{$resource_id}-0.' . $image->getExt(); - $picture['preview'] = DI::baseUrl() . '/photo/{$resource_id}-{$smallest}.' . $image->getExt(); + $picture['picture'] = DI::baseUrl() . '/photo/' . $resource_id . '-0.' . $image->getExt(); + $picture['preview'] = DI::baseUrl() . '/photo/' . $resource_id . '-' . $smallest . '.' . $image->getExt(); Logger::info('upload done', ['picture' => $picture]); return $picture; @@ -1272,4 +1272,3 @@ class Photo return $resource_id; } } -