diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-06-23 05:41:16 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-06-23 05:41:16 +0000 |
commit | 23142e0efbdebcde29ef0da7f99ac1b39d985374 (patch) | |
tree | 1b042e70ff8492cec7aee2427a20658ef74f0ded /modules | |
parent | ae6aa4e59ecd5bb6647ac9b1343d4f68d57d922b (diff) | |
download | brdo-23142e0efbdebcde29ef0da7f99ac1b39d985374.tar.gz brdo-23142e0efbdebcde29ef0da7f99ac1b39d985374.tar.bz2 |
- Patch #8757 by Morbus Iff: fixed redirection after comment moderation.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/comment.module | 4 | ||||
-rw-r--r-- | modules/comment/comment.module | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/comment.module b/modules/comment.module index e60036a0e..0c56e9929 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -854,7 +854,7 @@ function comment_page() { case t('Moderate comments'): case t('Moderate comment'): comment_moderate($edit); - drupal_goto(comment_node_url()); + drupal_goto('node/'. $edit['nid'] .'#comment'); break; case 'reply': 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']; 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; } } diff --git a/modules/comment/comment.module b/modules/comment/comment.module index e60036a0e..0c56e9929 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -854,7 +854,7 @@ function comment_page() { case t('Moderate comments'): case t('Moderate comment'): comment_moderate($edit); - drupal_goto(comment_node_url()); + drupal_goto('node/'. $edit['nid'] .'#comment'); break; case 'reply': 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']; 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; } } |