cvs diff -u comment.module (in directory C:\CVS\drupal\modules\) Index: comment.module =================================================================== RCS file: /cvs/drupal/drupal/modules/comment.module,v retrieving revision 1.352 diff -u -r1.352 comment.module --- comment.module 14 May 2005 17:23:18 -0000 1.352 +++ comment.module 20 May 2005 17:01:09 -0000 @@ -493,10 +493,7 @@ $output = ''; - $comment = new StdClass(); - foreach ($edit as $key => $value) { - $comment->$key = $value; - } + $comment = array2object($edit); // Attach the user and time information. $comment->uid = $user->uid; @@ -504,7 +501,7 @@ $comment->name = check_plain($user->name ? $user->name : $comment->name); // Preview the comment. - $output .= theme('comment_view', $comment, theme('links', module_invoke_all('link', 'comment', $comment, 1))); + $output .= theme('comment_preview', $comment, theme('links', module_invoke_all('link', 'comment', $comment, 1))); $output .= theme('comment_form', $edit, t('Reply')); if ($edit['pid']) { @@ -1431,6 +1428,13 @@ return theme('box', $title, form($form, 'post', url('comment/reply/'. $edit['nid']))); } +function theme_comment_preview($comment, $links = '', $visible = 1) { + $output = '