diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-06-09 07:07:36 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-06-09 07:07:36 +0000 |
commit | 5ed9cf76a065df0fcdcce67197f34b62ac83cac5 (patch) | |
tree | db9e25de350d9b9ab299976d6c1ca94dfad13054 /modules/comment/comment.module | |
parent | 53a0a419dc0f55dfd62223cde0c6db26b58539b4 (diff) | |
download | brdo-5ed9cf76a065df0fcdcce67197f34b62ac83cac5.tar.gz brdo-5ed9cf76a065df0fcdcce67197f34b62ac83cac5.tar.bz2 |
- Patch #253577 by Morbus Iff: allow new comment timestamp to be passed.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 6dc45017f..ecb73af92 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; } |