summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/comment.module6
-rw-r--r--modules/comment/comment.module6
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 {