1
0
Fork 0

Inherit ApiResponse from Response

This commit is contained in:
Philipp Holzer 2021-11-21 21:52:36 +01:00
commit 537b74f307
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
46 changed files with 326 additions and 277 deletions

View file

@ -391,6 +391,7 @@ function save_media_to_database($mediatype, $media, $type, $album, $allow_cid, $
return prepare_photo_data($type, false, $resource_id, $uid);
} else {
throw new InternalServerErrorException("image upload failed");
DI::page()->exit(DI::apiResponse());
}
}