forked from GNUsocial/gnu-social
Convert use of common_server_error and common_user_error to methods on Action
This commit is contained in:
@@ -103,10 +103,10 @@ class ApiAction extends Action
|
||||
|
||||
call_user_func(array($action_obj, $this->api_method), $_REQUEST, $apidata);
|
||||
} else {
|
||||
common_user_error("API method not found!", $code=404);
|
||||
$this->clientError("API method not found!", $code=404);
|
||||
}
|
||||
} else {
|
||||
common_user_error("API method not found!", $code=404);
|
||||
$this->clientError("API method not found!", $code=404);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user