From c3119d1f183eb9f492bcefae083df0a2d652b6e6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 29 May 2003 08:21:00 +0000 Subject: - My filter commit accidentically broke the comment submission which is now fixed. Patch by Al. --- modules/comment.module | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/comment.module') 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 "cid\">\n"; if ($visible) { - $comment->comment = check_output($comment); + $comment->comment = check_output($comment->comment); theme("comment", $comment, $links); } else { -- cgit v1.2.3