summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-15 16:18:46 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-15 16:18:46 +0000
commite1642603eac05665d959c3d63ea8d1efbe9e431a (patch)
treeb927cc0b278e90594310d8291091d76af9c57d40 /modules/comment/comment.module
parentc7557262b3ac01f40613dd6141ef09d1ae7b84ba (diff)
downloadbrdo-e1642603eac05665d959c3d63ea8d1efbe9e431a.tar.gz
brdo-e1642603eac05665d959c3d63ea8d1efbe9e431a.tar.bz2
#216098 by kwinters, jgoldberg, drawk, sun: Make drupal_goto() use the same parameters as url().
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 073e4c74a..87ef24c0a 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -2092,7 +2092,7 @@ function comment_form_submit($form, &$form_state) {
$query['page'] = $page;
}
// Redirect to the newly posted comment.
- $redirect = array('node/' . $node->nid, $query, 'comment-' . $comment->cid);
+ $redirect = array('node/' . $node->nid, array('query' => $query, 'fragment' => 'comment-' . $comment->cid));
}
else {
watchdog('content', 'Comment: unauthorized comment submitted or comment submitted to a closed post %subject.', array('%subject' => $comment->subject), WATCHDOG_WARNING);