Compare commits

..

No commits in common. "08b45a32a5f96432ad5706810498dbd2f49d7e66" and "19e3e49fdc728c2c8a3a6e3968de467879c2bdef" have entirely different histories.

View file

@ -1012,7 +1012,7 @@ class Media
*/
public static function getPreviewUrlForId(int $id, string $size = ''): string
{
return DI::baseUrl() . '/photo/preview/' .
return '/photo/preview/' .
(Proxy::getPixelsFromSize($size) ? Proxy::getPixelsFromSize($size) . '/' : '') .
$id;
}
@ -1026,7 +1026,7 @@ class Media
*/
public static function getUrlForId(int $id, string $size = ''): string
{
return DI::baseUrl() . '/photo/media/' .
return '/photo/media/' .
(Proxy::getPixelsFromSize($size) ? Proxy::getPixelsFromSize($size) . '/' : '') .
$id;
}