- Patch #8757 by Morbus Iff: fixed redirection after comment moderation.
parent
ae6aa4e59e
commit
23142e0efb
|
@ -854,7 +854,7 @@ function comment_page() {
|
||||||
case t('Moderate comments'):
|
case t('Moderate comments'):
|
||||||
case t('Moderate comment'):
|
case t('Moderate comment'):
|
||||||
comment_moderate($edit);
|
comment_moderate($edit);
|
||||||
drupal_goto(comment_node_url());
|
drupal_goto('node/'. $edit['nid'] .'#comment');
|
||||||
break;
|
break;
|
||||||
case 'reply':
|
case 'reply':
|
||||||
print theme('page', comment_reply(check_query(arg(3)), check_query(arg(2))), t('Add new comment'));
|
print theme('page', comment_reply(check_query(arg(3)), check_query(arg(2))), t('Add new comment'));
|
||||||
|
@ -874,7 +874,7 @@ function comment_page() {
|
||||||
$comments_per_page = $_POST['comments_per_page'];
|
$comments_per_page = $_POST['comments_per_page'];
|
||||||
|
|
||||||
comment_save_settings(check_query($mode), check_query($order), check_query($threshold), check_query($comments_per_page));
|
comment_save_settings(check_query($mode), check_query($order), check_query($threshold), check_query($comments_per_page));
|
||||||
drupal_goto(comment_node_url());
|
drupal_goto('node/'. $edit['nid'] .'#comment');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -854,7 +854,7 @@ function comment_page() {
|
||||||
case t('Moderate comments'):
|
case t('Moderate comments'):
|
||||||
case t('Moderate comment'):
|
case t('Moderate comment'):
|
||||||
comment_moderate($edit);
|
comment_moderate($edit);
|
||||||
drupal_goto(comment_node_url());
|
drupal_goto('node/'. $edit['nid'] .'#comment');
|
||||||
break;
|
break;
|
||||||
case 'reply':
|
case 'reply':
|
||||||
print theme('page', comment_reply(check_query(arg(3)), check_query(arg(2))), t('Add new comment'));
|
print theme('page', comment_reply(check_query(arg(3)), check_query(arg(2))), t('Add new comment'));
|
||||||
|
@ -874,7 +874,7 @@ function comment_page() {
|
||||||
$comments_per_page = $_POST['comments_per_page'];
|
$comments_per_page = $_POST['comments_per_page'];
|
||||||
|
|
||||||
comment_save_settings(check_query($mode), check_query($order), check_query($threshold), check_query($comments_per_page));
|
comment_save_settings(check_query($mode), check_query($order), check_query($threshold), check_query($comments_per_page));
|
||||||
drupal_goto(comment_node_url());
|
drupal_goto('node/'. $edit['nid'] .'#comment');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue