diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/rest/controllers/rest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/rest/controllers/rest.php b/modules/rest/controllers/rest.php index cac49740..a3e7313c 100644 --- a/modules/rest/controllers/rest.php +++ b/modules/rest/controllers/rest.php @@ -73,7 +73,7 @@ class Rest_Controller extends Controller { } try { - print call_user_func(array($handler_class, $handler_method), $request); + print rest::reply(call_user_func(array($handler_class, $handler_method), $request)); } catch (ORM_Validation_Exception $e) { foreach ($e->validation->errors() as $key => $value) { $msgs[] = "$key: $value"; |