- Patch #253577 by Morbus Iff: allow new comment timestamp to be passed.

merge-requests/26/head
Dries Buytaert 2008-06-09 07:07:36 +00:00
parent 53a0a419dc
commit 5ed9cf76a0
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}