summaryrefslogtreecommitdiff
path: root/modules/comment.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment.module')
-rw-r--r--modules/comment.module6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/comment.module b/modules/comment.module
index 2016cdf99..e7412ee23 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -160,6 +160,10 @@ function comment_reply($pid, $nid) {
function comment_preview($edit) {
global $user;
+ foreach ($edit as $key => $value) {
+ $comment->$key = $value;
+ }
+
/*
** Attach the user and time information:
*/
@@ -359,7 +363,7 @@ function comment_view($comment, $links = "", $visible = 1) {
print "<a name=\"$comment->cid\"></a>\n";
if ($visible) {
- $comment->comment = check_output($comment);
+ $comment->comment = check_output($comment->comment);
theme("comment", $comment, $links);
}
else {