Fix string interpolation in Model\Photo::upload
This commit is contained in:
parent
9751cadfbf
commit
6dcc964ed8
|
@ -1130,8 +1130,8 @@ class Photo
|
||||||
$picture['height'] = $photo['height'];
|
$picture['height'] = $photo['height'];
|
||||||
$picture['type'] = $photo['type'];
|
$picture['type'] = $photo['type'];
|
||||||
$picture['albumpage'] = DI::baseUrl() . '/photos/' . $user['nickname'] . '/image/' . $resource_id;
|
$picture['albumpage'] = DI::baseUrl() . '/photos/' . $user['nickname'] . '/image/' . $resource_id;
|
||||||
$picture['picture'] = DI::baseUrl() . '/photo/{$resource_id}-0.' . $image->getExt();
|
$picture['picture'] = DI::baseUrl() . '/photo/' . $resource_id . '-0.' . $image->getExt();
|
||||||
$picture['preview'] = DI::baseUrl() . '/photo/{$resource_id}-{$smallest}.' . $image->getExt();
|
$picture['preview'] = DI::baseUrl() . '/photo/' . $resource_id . '-' . $smallest . '.' . $image->getExt();
|
||||||
|
|
||||||
Logger::info('upload done', ['picture' => $picture]);
|
Logger::info('upload done', ['picture' => $picture]);
|
||||||
return $picture;
|
return $picture;
|
||||||
|
@ -1272,4 +1272,3 @@ class Photo
|
||||||
return $resource_id;
|
return $resource_id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue