summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-12-03 16:03:58 -0500
committerEvan Prodromou <evan@controlyourself.ca>2008-12-03 16:03:58 -0500
commit64411ff957a0cbe68961ac418054e71bf751015b (patch)
tree22a14209d1a47f3f50578a29dc29a89419f85a0b /actions
parent3ee84b3bfaeff3488ad8226db228385a849c3160 (diff)
prepare the action obj for API
darcs-hash:20081203210358-5ed1f-3ff0de9c00c72de6bde703b150b24597ff8fadf4.gz
Diffstat (limited to 'actions')
-rw-r--r--actions/api.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/actions/api.php b/actions/api.php
index ff46e62e7..ccebcd89e 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,