- Patch #47705 by DriesK: comment moderation/approval wasn't working due to a bug with its forms.

4.7.x
Dries Buytaert 2006-02-04 09:54:16 +00:00
parent 035fc5c649
commit 91e152b8b8
2 changed files with 2 additions and 16 deletions

View File

@ -952,7 +952,6 @@ function comment_operations($action = NULL) {
* Menu callback; present an administrative comment listing.
*/
function comment_admin_overview($type = 'new') {
global $form_values;
$edit = $_POST['edit'];
if ($edit['operation'] == 'delete') {
@ -993,13 +992,7 @@ function comment_admin_overview($type = 'new') {
}
$form['comments'] = array('#type' => 'checkboxes', '#options' => $comments);
$form['pager'] = array('#value' => theme('pager', NULL, 50, 0));
$form['#method'] = 'post';
$form['#action'] = url('admin/comment/action');
$output = drupal_get_form('comment_admin_overview', $form);
return $output;
return drupal_get_form('comment_admin_overview', $form);
}
/**

View File

@ -952,7 +952,6 @@ function comment_operations($action = NULL) {
* Menu callback; present an administrative comment listing.
*/
function comment_admin_overview($type = 'new') {
global $form_values;
$edit = $_POST['edit'];
if ($edit['operation'] == 'delete') {
@ -993,13 +992,7 @@ function comment_admin_overview($type = 'new') {
}
$form['comments'] = array('#type' => 'checkboxes', '#options' => $comments);
$form['pager'] = array('#value' => theme('pager', NULL, 50, 0));
$form['#method'] = 'post';
$form['#action'] = url('admin/comment/action');
$output = drupal_get_form('comment_admin_overview', $form);
return $output;
return drupal_get_form('comment_admin_overview', $form);
}
/**