From: Evan Prodromou Date: Wed, 3 Dec 2008 21:03:58 +0000 (-0500) Subject: prepare the action obj for API X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=64411ff957a0cbe68961ac418054e71bf751015b;p=quix0rs-gnu-social.git prepare the action obj for API darcs-hash:20081203210358-5ed1f-3ff0de9c00c72de6bde703b150b24597ff8fadf4.gz --- diff --git a/actions/api.php b/actions/api.php index ff46e62e76..ccebcd89e5 100644 --- a/actions/api.php +++ b/actions/api.php @@ -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,