1
0
Fork 0

Switch static::$parameters to $this->parameters

This commit is contained in:
Philipp Holzer 2021-11-14 23:19:25 +01:00
commit 5879535822
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
116 changed files with 321 additions and 314 deletions

View file

@ -64,7 +64,7 @@ class Delete extends BaseApi
Item::deleteForUser($condition, $uid);
$result = ['result' => 'deleted', 'message' => 'photo with id `' . $request['photo_id'] . '` has been deleted from server.'];
DI::apiResponse()->exit('photo_delete', ['$result' => $result], static::$parameters['extension'] ?? null);
DI::apiResponse()->exit('photo_delete', ['$result' => $result], $this->parameters['extension'] ?? null);
} else {
throw new InternalServerErrorException("unknown error on deleting photo from database table");
}