Commit a7713036 authored by Dries's avatar Dries

- 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).
parent f2c76967
......@@ -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) {
......
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment