summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2006-01-06 01:14:17 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2006-01-06 01:14:17 +0000
commit030fd1798a20e15d7275e5742462c2af822a5f63 (patch)
tree8391697e9b5fb84c08241576df214caad588cc20
parentc27b62b182dab9ef0f301b2caf94962c59c20909 (diff)
downloadbrdo-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.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')) {