- $picture = [];
-
- $picture["id"] = $photo["id"];
- $picture["size"] = $photo["datasize"];
- $picture["width"] = $photo["width"];
- $picture["height"] = $photo["height"];
- $picture["type"] = $photo["type"];
- $picture["albumpage"] = DI::baseUrl() . '/photos/' . $page_owner_nick . '/image/' . $resource_id;
- $picture["picture"] = DI::baseUrl() . "/photo/{$resource_id}-0." . $Image->getExt();
- $picture["preview"] = DI::baseUrl() . "/photo/{$resource_id}-{$smallest}." . $Image->getExt();
-
- if ($r_json) {
+
+ $picture = [
+ 'id' => $photo['id'],
+ 'size' => $photo['datasize'],
+ 'width' => $photo['width'],
+ 'height' => $photo['height'],
+ 'type' => $photo['type'],
+ 'albumpage' => DI::baseUrl() . '/photos/' . $page_owner_nick . '/image/' . $resource_id,
+ 'picture' => DI::baseUrl() . "/photo/{$resource_id}-0." . $image->getExt(),
+ 'preview' => DI::baseUrl() . "/photo/{$resource_id}-{$smallest}." . $image->getExt(),
+ ];
+
+ if ($isJson) {