From 5ed9cf76a065df0fcdcce67197f34b62ac83cac5 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 9 Jun 2008 07:07:36 +0000 Subject: [PATCH] - Patch #253577 by Morbus Iff: allow new comment timestamp to be passed. --- modules/comment/comment.module | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 6dc45017fbf..ecb73af92ef 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -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; }