add 'src' parameter to api photo list
This commit is contained in:
parent
e6dc916915
commit
f8042cc467
@ -326,6 +326,9 @@ function photos_list_photos($channel,$observer,$album = '') {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if($r) {
|
if($r) {
|
||||||
|
for($x = 0; $x < count($r); $x ++) {
|
||||||
|
$r[$x]['src'] = z_root() . '/photo/' . $r[$x]['resource_id'] . '-' . $r[$x]['scale'];
|
||||||
|
}
|
||||||
$ret['success'] = true;
|
$ret['success'] = true;
|
||||||
$ret['photos'] = $r;
|
$ret['photos'] = $r;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user