diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-01-06 01:14:17 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-01-06 01:14:17 +0000 |
commit | 030fd1798a20e15d7275e5742462c2af822a5f63 (patch) | |
tree | 8391697e9b5fb84c08241576df214caad588cc20 | |
parent | c27b62b182dab9ef0f301b2caf94962c59c20909 (diff) | |
download | brdo-030fd1798a20e15d7275e5742462c2af822a5f63.tar.gz brdo-030fd1798a20e15d7275e5742462c2af822a5f63.tar.bz2 |
- Comment bug: anchor links should be specified using $fragment in url() and drupal_goto().
-rw-r--r-- | modules/comment.module | 2 | ||||
-rw-r--r-- | modules/comment/comment.module | 2 |
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')) { |