Fix images in the API
This commit is contained in:
parent
bffbde4639
commit
cd9fc0ddec
1 changed files with 2 additions and 2 deletions
|
@ -1012,7 +1012,7 @@ class Media
|
||||||
*/
|
*/
|
||||||
public static function getPreviewUrlForId(int $id, string $size = ''): string
|
public static function getPreviewUrlForId(int $id, string $size = ''): string
|
||||||
{
|
{
|
||||||
return '/photo/preview/' .
|
return DI::baseUrl() . '/photo/preview/' .
|
||||||
(Proxy::getPixelsFromSize($size) ? Proxy::getPixelsFromSize($size) . '/' : '') .
|
(Proxy::getPixelsFromSize($size) ? Proxy::getPixelsFromSize($size) . '/' : '') .
|
||||||
$id;
|
$id;
|
||||||
}
|
}
|
||||||
|
@ -1026,7 +1026,7 @@ class Media
|
||||||
*/
|
*/
|
||||||
public static function getUrlForId(int $id, string $size = ''): string
|
public static function getUrlForId(int $id, string $size = ''): string
|
||||||
{
|
{
|
||||||
return '/photo/media/' .
|
return DI::baseUrl() . '/photo/media/' .
|
||||||
(Proxy::getPixelsFromSize($size) ? Proxy::getPixelsFromSize($size) . '/' : '') .
|
(Proxy::getPixelsFromSize($size) ? Proxy::getPixelsFromSize($size) . '/' : '') .
|
||||||
$id;
|
$id;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue