diff options
Diffstat (limited to 'modules/comment.module')
-rw-r--r-- | modules/comment.module | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/comment.module b/modules/comment.module index 06bb7e033..f5da756cf 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -238,6 +238,7 @@ function comment_preview($edit) { $comment->uid = $user->uid; $comment->timestamp = time(); + $comment->name = $user->name ? $user->name : $comment->name; /* ** Preview the comment: @@ -708,6 +709,7 @@ function comment_render($node, $cid = 0) { while ($comment = db_fetch_object($result)) { $comment = drupal_unpack($comment); + $comment->name = $comment->registered_name ? $comment->registered_name : $comment->name; $comment->depth = count(explode(".", $comment->thread)) - 1; if ($mode == 1) { |