diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-28 18:19:23 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-28 18:19:23 +0000 |
commit | ef244365561d38987bb92bd0ab33bfc331156408 (patch) | |
tree | 36a696a786aa32c0cbbb8cbfb9530940a3337998 /modules/comment/comment.module | |
parent | 52ba5cc84c0d6e47913392a1df666b8b6cd27952 (diff) | |
download | brdo-ef244365561d38987bb92bd0ab33bfc331156408.tar.gz brdo-ef244365561d38987bb92bd0ab33bfc331156408.tar.bz2 |
#1005004 by markabur, bfroehle: Fixed critical Editing a comment destroys its creation date
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index fe3584b17..01f7f9443 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1910,7 +1910,7 @@ function comment_form($form, &$form_state, $comment) { if ($is_admin) { $author = (!$comment->uid && $comment->name ? $comment->name : $comment->registered_name); $status = (isset($comment->status) ? $comment->status : COMMENT_NOT_PUBLISHED); - $date = (!empty($comment->date) ? $comment->date : format_date($comment->changed, 'custom', 'Y-m-d H:i O')); + $date = (!empty($comment->date) ? $comment->date : format_date($comment->created, 'custom', 'Y-m-d H:i O')); } else { if ($user->uid) { |