prepare the action obj for API

darcs-hash:20081203210358-5ed1f-3ff0de9c00c72de6bde703b150b24597ff8fadf4.gz
This commit is contained in:
Evan Prodromou 2008-12-03 16:03:58 -05:00
parent 3ee84b3bfa
commit 64411ff957
1 changed files with 4 additions and 0 deletions

View File

@ -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,