Mercurial > defr > drupal > core
comparison modules/comment/comment.module @ 11:589fb7c02327 6.5
Drupal 6.5
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:32:19 +0100 |
parents | fff6d4c8c043 |
children | 3edae6ecd6c6 |
comparison
equal
deleted
inserted
replaced
10:6f15c9d74937 | 11:589fb7c02327 |
---|---|
1 <?php | 1 <?php |
2 // $Id: comment.module,v 1.617.2.2 2008/04/25 20:58:46 goba Exp $ | 2 // $Id: comment.module,v 1.617.2.3 2008/09/17 06:22:38 goba Exp $ |
3 | 3 |
4 /** | 4 /** |
5 * @file | 5 * @file |
6 * Enables users to comment on published content. | 6 * Enables users to comment on published content. |
7 * | 7 * |
751 // Finally, build the thread field for this new comment. | 751 // Finally, build the thread field for this new comment. |
752 $thread = $parent->thread .'.'. int2vancode(vancode2int($last) + 1) .'/'; | 752 $thread = $parent->thread .'.'. int2vancode(vancode2int($last) + 1) .'/'; |
753 } | 753 } |
754 } | 754 } |
755 | 755 |
756 $edit['timestamp'] = time(); | 756 if (empty($edit['timestamp'])) { |
757 $edit['timestamp'] = time(); | |
758 } | |
757 | 759 |
758 if ($edit['uid'] === $user->uid) { // '===' because we want to modify anonymous users too | 760 if ($edit['uid'] === $user->uid) { // '===' because we want to modify anonymous users too |
759 $edit['name'] = $user->name; | 761 $edit['name'] = $user->name; |
760 } | 762 } |
761 | 763 |