summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,