- Patch #253577 by Morbus Iff: allow new comment timestamp to be passed.
parent
53a0a419dc
commit
5ed9cf76a0
|
@ -739,7 +739,10 @@ function comment_save($edit) {
|
|||
}
|
||||
}
|
||||
|
||||
$edit['timestamp'] = time();
|
||||
if (empty($edit['timestamp'])) {
|
||||
$edit['timestamp'] = time();
|
||||
}
|
||||
|
||||
if ($edit['uid'] === $user->uid) { // '===' Need to modify anonymous users as well.
|
||||
$edit['name'] = $user->name;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue