Commit e9f7072e authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#186749 by Rob Loach and myself: (regression) only override comment submitter...

#186749 by Rob Loach and myself: (regression) only override comment submitter name with anonymous name, if it was not provided already
parent 366c8669
......@@ -1368,7 +1368,7 @@ function comment_form_add_preview($form, &$form_state) {
$comment->uid = $account->uid;
$comment->name = check_plain($account->name);
}
else {
elseif (empty($comment->name)) {
$comment->name = variable_get('anonymous', t('Anonymous'));
}
$comment->timestamp = !empty($edit['timestamp']) ? $edit['timestamp'] : time();
......
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