mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +03:00
Return more absolute url in Photo::getSizes::type::url
This commit is contained in:
parent
687f2937d2
commit
3c4f41e58c
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ class Photo extends Media
|
||||||
foreach($sizes as $id => $meta) {
|
foreach($sizes as $id => $meta) {
|
||||||
if(isset($meta[3]) && !$meta[3]) {
|
if(isset($meta[3]) && !$meta[3]) {
|
||||||
$res[$id] = (object) [
|
$res[$id] = (object) [
|
||||||
"url" => "/photos/thumbnails/" . $this->getId() . "_$id.jpeg",
|
"url" => ovk_scheme(true) . $_SERVER["HTTP_HOST"] . "/photos/thumbnails/" . $this->getId() . "_$id.jpeg",
|
||||||
"width" => NULL,
|
"width" => NULL,
|
||||||
"height" => NULL,
|
"height" => NULL,
|
||||||
"crop" => NULL
|
"crop" => NULL
|
||||||
|
|
Loading…
Reference in a new issue