summaryrefslogtreecommitdiff
path: root/modules/comment/controllers/comments.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-12-29 21:09:44 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-12-29 21:09:44 +0000
commit69603ede7a0d7567f37025eee713975282122d13 (patch)
tree1d270e63199faac57a7f2cbd939da04eb64576e6 /modules/comment/controllers/comments.php
parent2bfddc4c87443640098387630967f6d141a9fce6 (diff)
Implemented bharat's suggestions to the comment module in preparation for the spam_filter module
Diffstat (limited to 'modules/comment/controllers/comments.php')
-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 293c456d..cb2ebb01 100644
--- a/modules/comment/controllers/comments.php
+++ b/modules/comment/controllers/comments.php
@@ -69,7 +69,7 @@ class Comments_Controller extends REST_Controller {
print json_encode(
array("result" => "success",
- "resource" => $comment->visible ? url::site("comments/{$comment->id}") : NULL,
+ "resource" => $comment->published ? url::site("comments/{$comment->id}") : NULL,
"form" => comment::get_add_form($item)->__toString()));
} else {
print json_encode(