summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-05-24 18:49:12 +0000
committerDries Buytaert <dries@buytaert.net>2004-05-24 18:49:12 +0000
commita77130362b468f63f2d716b157cef189360fa8b1 (patch)
treefbf3dfded0a99bc2d41f53a05259edc166072d9e
parentf2c769676526548ea0bcb2b04ca4888626978209 (diff)
downloadbrdo-a77130362b468f63f2d716b157cef189360fa8b1.tar.gz
brdo-a77130362b468f63f2d716b157cef189360fa8b1.tar.bz2
- Patch 7444 (#35) by Pablo. This patch addresses some issues with showing
anonymous usernames in comments. It does not solve all my problems, but others claim it works as advertised. I'm committing this because it does fix some pending issues (even though that might not be the end of it).
-rw-r--r--modules/comment.module2
-rw-r--r--modules/comment/comment.module2
2 files changed, 4 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) {
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 06bb7e033..f5da756cf 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/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) {