Commit 8f1e9cd7 authored by Dries's avatar Dries
Browse files

- Modified patch #18215 by ankur: make sure the comment statistics update...

- Modified patch #18215 by ankur: make sure the comment statistics update after approval in the moderation queue.
parent 2eb99e5f
...@@ -942,7 +942,8 @@ function comment_admin_edit($cid) { ...@@ -942,7 +942,8 @@ function comment_admin_edit($cid) {
$form .= form_textarea(t('Comment'), 'comment', $comment->comment, 70, 15, ''); $form .= form_textarea(t('Comment'), 'comment', $comment->comment, 70, 15, '');
$form .= filter_form('format', $comment->format); $form .= filter_form('format', $comment->format);
$form .= form_radios(t('Status'), 'status', $comment->status, array(t('Published'), t('Not published'))); $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')); $form .= form_submit(t('Submit'));
print theme('page', form($form)); print theme('page', form($form));
} }
......
...@@ -942,7 +942,8 @@ function comment_admin_edit($cid) { ...@@ -942,7 +942,8 @@ function comment_admin_edit($cid) {
$form .= form_textarea(t('Comment'), 'comment', $comment->comment, 70, 15, ''); $form .= form_textarea(t('Comment'), 'comment', $comment->comment, 70, 15, '');
$form .= filter_form('format', $comment->format); $form .= filter_form('format', $comment->format);
$form .= form_radios(t('Status'), 'status', $comment->status, array(t('Published'), t('Not published'))); $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')); $form .= form_submit(t('Submit'));
print theme('page', form($form)); print theme('page', form($form));
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment