summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-25 01:06:37 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-25 01:06:37 +0000
commit7a9d4a22249e55d0db298827565b8cbe4f031741 (patch)
treec5a6c472b039c37cd2054048c5a4def12fcf7a4c
parentcdcd8bf37754fb697a06157ab95029440cba9b0c (diff)
Fix the way we dump out comment in _show().
-rw-r--r--modules/comment/controllers/comments.php2
1 files changed, 1 insertions, 1 deletions
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;