summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/comment.module2
-rw-r--r--modules/comment/comment.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment.module b/modules/comment.module
index 9ae46087e..70031f3db 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -1409,7 +1409,7 @@ function comment_form_submit($form_id, $form_values) {
if ($op == t('Post comment')) {
drupal_set_title(t('Post comment'));
if ($cid = comment_save($form_values)) {
- drupal_goto("node/$nid#comment-$cid");
+ drupal_goto("node/$nid", NULL, "comment-$cid");
}
}
else if ($_POST['op'] == t('Preview comment')) {
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 9ae46087e..70031f3db 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1409,7 +1409,7 @@ function comment_form_submit($form_id, $form_values) {
if ($op == t('Post comment')) {
drupal_set_title(t('Post comment'));
if ($cid = comment_save($form_values)) {
- drupal_goto("node/$nid#comment-$cid");
+ drupal_goto("node/$nid", NULL, "comment-$cid");
}
}
else if ($_POST['op'] == t('Preview comment')) {