From 64411ff957a0cbe68961ac418054e71bf751015b Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 3 Dec 2008 16:03:58 -0500 Subject: prepare the action obj for API darcs-hash:20081203210358-5ed1f-3ff0de9c00c72de6bde703b150b24597ff8fadf4.gz --- actions/api.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actions/api.php') 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, -- cgit v1.2.3-54-g00ecf