diff --git a/actions/api.php b/actions/api.php index ff46e62e761af5400ddce63ee1b5c39ea83d77be..ccebcd89e5cdca32fda64973964bfe73f2166090 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,