Commit b466d937 authored by alexpott's avatar alexpott

Issue #1990732 by joelpittet | andymartha: Fixed template_preprocess_comment()...

Issue #1990732 by joelpittet | andymartha: Fixed template_preprocess_comment() is preparing the parent's author with the wrong comment's uid.
parent 62eebd61
......@@ -1601,7 +1601,7 @@ function template_preprocess_comment(&$variables) {
if ($comment->pid->target_id) {
// Fetch and store the parent comment information for use in templates.
$comment_parent = $comment->pid->entity;
$account_parent = comment_prepare_author($comment);
$account_parent = comment_prepare_author($comment_parent);
$variables['parent_comment'] = $comment_parent;
$variables['parent_author'] = theme('username', array('account' => $account_parent));
$variables['parent_created'] = format_date($comment_parent->created->value);
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