mirror of
https://github.com/friendica/friendica
synced 2025-04-24 21:10:10 +00:00
Transform ApiResponse::error() into dynamic method
This commit is contained in:
parent
ea0f41ecf0
commit
ebf56674f1
3 changed files with 5 additions and 5 deletions
|
@ -283,7 +283,7 @@ function api_call(App $a, App\Arguments $args = null)
|
|||
Logger::warning(API_LOG_PREFIX . 'not implemented', ['module' => 'api', 'action' => 'call', 'query' => DI::args()->getQueryString()]);
|
||||
throw new NotFoundException();
|
||||
} catch (HTTPException $e) {
|
||||
ApiResponse::error($e->getCode(), $e->getDescription(), $e->getMessage(), $type);
|
||||
DI::apiResponse()->error($e->getCode(), $e->getDescription(), $e->getMessage(), $type);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue