diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-04-07 08:07:41 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-04-07 08:07:41 -0700 |
commit | 9bb4c954bbc10e71a695b57f7e8979a140f4873f (patch) | |
tree | fd4317fda83f00775ae7f929af42208159489e39 /modules/rest | |
parent | 50b0b73345b7b8aae070f5289dff8e0c2d278fde (diff) |
Merge bharat_dev rest implementation
Diffstat (limited to 'modules/rest')
-rw-r--r-- | modules/rest/controllers/rest.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/rest/controllers/rest.php b/modules/rest/controllers/rest.php index 410eeece..38f28171 100644 --- a/modules/rest/controllers/rest.php +++ b/modules/rest/controllers/rest.php @@ -55,6 +55,13 @@ class Rest_Controller extends Controller { break; } + if (isset($request->params->entity)) { + $request->params->entity = json_decode($request->params->entity); + } + if (isset($request->params->members)) { + $request->params->members = json_decode($request->params->members); + } + $request->method = strtolower($input->server("HTTP_X_GALLERY_REQUEST_METHOD", $method)); $request->access_key = $input->server("HTTP_X_GALLERY_REQUEST_KEY"); |