From 784202418fcd0669271389a83b955e6ef2055f28 Mon Sep 17 00:00:00 2001 From: Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> Date: Mon, 27 Feb 2006 14:54:24 +0000 Subject: [PATCH] #50771, Wrong user name in admin/comment, patach by Markus Petrux --- modules/comment.module | 1 + modules/comment/comment.module | 1 + 2 files changed, 2 insertions(+) diff --git a/modules/comment.module b/modules/comment.module index a1216b0e0e54..aa44503b973b 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -957,6 +957,7 @@ function comment_admin_overview($type = 'new') { $destination = drupal_get_destination(); while ($comment = db_fetch_object($result)) { $comments[$comment->cid] = ''; + $comment->name = $comment->uid ? $comment->registered_name : $comment->name; $form['subject'][$comment->cid] = array('#value' => l($comment->subject, 'node/'. $comment->nid, array('title' => truncate_utf8($comment->comment, 128)), NULL, 'comment-'. $comment->cid)); $form['username'][$comment->cid] = array('#value' => theme('username', $comment)); $form['timestamp'][$comment->cid] = array('#value' => format_date($comment->timestamp, 'small')); diff --git a/modules/comment/comment.module b/modules/comment/comment.module index a1216b0e0e54..aa44503b973b 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -957,6 +957,7 @@ function comment_admin_overview($type = 'new') { $destination = drupal_get_destination(); while ($comment = db_fetch_object($result)) { $comments[$comment->cid] = ''; + $comment->name = $comment->uid ? $comment->registered_name : $comment->name; $form['subject'][$comment->cid] = array('#value' => l($comment->subject, 'node/'. $comment->nid, array('title' => truncate_utf8($comment->comment, 128)), NULL, 'comment-'. $comment->cid)); $form['username'][$comment->cid] = array('#value' => theme('username', $comment)); $form['timestamp'][$comment->cid] = array('#value' => format_date($comment->timestamp, 'small')); -- GitLab