diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-05-29 08:21:00 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-05-29 08:21:00 +0000 |
commit | c3119d1f183eb9f492bcefae083df0a2d652b6e6 (patch) | |
tree | d5fbb54e61071704b6479cc9b288b347d74c6c2d | |
parent | 3f2dd954050d3bc9e5762784e9713f56c79766d9 (diff) | |
download | brdo-c3119d1f183eb9f492bcefae083df0a2d652b6e6.tar.gz brdo-c3119d1f183eb9f492bcefae083df0a2d652b6e6.tar.bz2 |
- My filter commit accidentically broke the comment submission which is now
fixed. Patch by Al.
-rw-r--r-- | modules/comment.module | 6 | ||||
-rw-r--r-- | modules/comment/comment.module | 6 |
2 files changed, 10 insertions, 2 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 { diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 2016cdf99..e7412ee23 100644 --- a/modules/comment/comment.module +++ b/modules/comment/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 { |