From 64411ff957a0cbe68961ac418054e71bf751015b Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 3 Dec 2008 16:03:58 -0500 Subject: [PATCH] prepare the action obj for API darcs-hash:20081203210358-5ed1f-3ff0de9c00c72de6bde703b150b24597ff8fadf4.gz --- actions/api.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/actions/api.php b/actions/api.php index ff46e62e76..ccebcd89e5 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, -- 2.39.5