summaryrefslogtreecommitdiff
path: root/modules/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-04-08 13:34:10 +0000
committerDries Buytaert <dries@buytaert.net>2005-04-08 13:34:10 +0000
commit8f1e9cd720dad48e6c48cb5c7bf4a514c1c1f98c (patch)
tree1c5e7613087a1ffefb3aa7d2482edc9146fd1f59 /modules/comment.module
parent2eb99e5fa28b083aa4ded940241ac1ddb3e6ae7f (diff)
downloadbrdo-8f1e9cd720dad48e6c48cb5c7bf4a514c1c1f98c.tar.gz
brdo-8f1e9cd720dad48e6c48cb5c7bf4a514c1c1f98c.tar.bz2
- Modified patch #18215 by ankur: make sure the comment statistics update after approval in the moderation queue.
Diffstat (limited to 'modules/comment.module')
-rw-r--r--modules/comment.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/comment.module b/modules/comment.module
index be5c7f9b3..c473def24 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -942,7 +942,8 @@ function comment_admin_edit($cid) {
$form .= form_textarea(t('Comment'), 'comment', $comment->comment, 70, 15, '');
$form .= filter_form('format', $comment->format);
$form .= form_radios(t('Status'), 'status', $comment->status, array(t('Published'), t('Not published')));
- $form .= form_hidden('cid', $cid);
+ $form .= form_hidden('nid', $comment->nid);
+ $form .= form_hidden('cid', $comment->cid);
$form .= form_submit(t('Submit'));
print theme('page', form($form));
}