summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-06-09 07:07:36 +0000
committerDries Buytaert <dries@buytaert.net>2008-06-09 07:07:36 +0000
commit5ed9cf76a065df0fcdcce67197f34b62ac83cac5 (patch)
treedb9e25de350d9b9ab299976d6c1ca94dfad13054
parent53a0a419dc0f55dfd62223cde0c6db26b58539b4 (diff)
downloadbrdo-5ed9cf76a065df0fcdcce67197f34b62ac83cac5.tar.gz
brdo-5ed9cf76a065df0fcdcce67197f34b62ac83cac5.tar.bz2
- Patch #253577 by Morbus Iff: allow new comment timestamp to be passed.
-rw-r--r--modules/comment/comment.module5
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;
}