From 7a9d4a22249e55d0db298827565b8cbe4f031741 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 25 Dec 2008 01:06:37 +0000 Subject: Fix the way we dump out comment in _show(). --- modules/comment/controllers/comments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/comment') diff --git a/modules/comment/controllers/comments.php b/modules/comment/controllers/comments.php index 2f5c902f..8ebb23af 100644 --- a/modules/comment/controllers/comments.php +++ b/modules/comment/controllers/comments.php @@ -86,7 +86,7 @@ class Comments_Controller extends REST_Controller { */ public function _show($comment) { if (rest::output_format() == "json") { - print json_encode(array("result" => "success", "data" => $comment)); + print json_encode(array("result" => "success", "data" => $comment->as_array())); } else { $view = new View("comment.html"); $view->comment = $comment; -- cgit v1.2.3