forked from GNUsocial/gnu-social
prepare the action obj for API
darcs-hash:20081203210358-5ed1f-3ff0de9c00c72de6bde703b150b24597ff8fadf4.gz
This commit is contained in:
parent
3ee84b3bfa
commit
64411ff957
@ -92,6 +92,10 @@ class ApiAction extends Action {
|
||||
$action_class = ucfirst($action)."Action";
|
||||
$action_obj = new $action_class();
|
||||
|
||||
if (!$action_obj->prepare($this->args)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (method_exists($action_obj, $this->api_method)) {
|
||||
$apidata = array( 'content-type' => $this->content_type,
|
||||
'api_method' => $this->api_method,
|
||||
|
Loading…
Reference in New Issue
Block a user