summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/comment.module6
-rw-r--r--modules/comment/comment.module6
2 files changed, 6 insertions, 6 deletions
diff --git a/modules/comment.module b/modules/comment.module
index 864b47ae3..b0d09c7ea 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -348,7 +348,7 @@ function comment_reply($nid, $pid = NULL) {
return comment_preview($edit);
}
else {
- drupal_goto("node/$nid#comment-$cid");
+ drupal_goto("node/$nid", NULL, "comment-$cid");
}
}
else if ($_POST['op'] == t('Preview comment')) {
@@ -548,7 +548,7 @@ function comment_save($edit) {
if ($edit['cid']) {
// Update the comment in the database.
- db_query("UPDATE {comments} SET status = '%s', timestamp = '%d', subject = '%s', comment = '%s', format = '%s', uid = %d, name = '%s' WHERE cid = %d", $edit['status'], $edit['timestamp'], $edit['subject'], $edit['comment'], $edit['format'], $edit['uid'], $edit['name'], $edit['cid']);
+ db_query("UPDATE {comments} SET status = '%s', timestamp = %d, subject = '%s', comment = '%s', format = '%s', uid = %d, name = '%s' WHERE cid = %d", $edit['status'], $edit['timestamp'], $edit['subject'], $edit['comment'], $edit['format'], $edit['uid'], $edit['name'], $edit['cid']);
_comment_update_node_statistics($edit['nid']);
@@ -991,7 +991,7 @@ function comment_save_settings() {
$_SESSION['comment_comments_per_page'] = $comments_per_page;
}
- drupal_goto('node/'. $edit['nid'] .'#comment');
+ drupal_goto('node/'. $edit['nid'], NULL, 'comment');
}
function comment_num_all($nid) {
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 864b47ae3..b0d09c7ea 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -348,7 +348,7 @@ function comment_reply($nid, $pid = NULL) {
return comment_preview($edit);
}
else {
- drupal_goto("node/$nid#comment-$cid");
+ drupal_goto("node/$nid", NULL, "comment-$cid");
}
}
else if ($_POST['op'] == t('Preview comment')) {
@@ -548,7 +548,7 @@ function comment_save($edit) {
if ($edit['cid']) {
// Update the comment in the database.
- db_query("UPDATE {comments} SET status = '%s', timestamp = '%d', subject = '%s', comment = '%s', format = '%s', uid = %d, name = '%s' WHERE cid = %d", $edit['status'], $edit['timestamp'], $edit['subject'], $edit['comment'], $edit['format'], $edit['uid'], $edit['name'], $edit['cid']);
+ db_query("UPDATE {comments} SET status = '%s', timestamp = %d, subject = '%s', comment = '%s', format = '%s', uid = %d, name = '%s' WHERE cid = %d", $edit['status'], $edit['timestamp'], $edit['subject'], $edit['comment'], $edit['format'], $edit['uid'], $edit['name'], $edit['cid']);
_comment_update_node_statistics($edit['nid']);
@@ -991,7 +991,7 @@ function comment_save_settings() {
$_SESSION['comment_comments_per_page'] = $comments_per_page;
}
- drupal_goto('node/'. $edit['nid'] .'#comment');
+ drupal_goto('node/'. $edit['nid'], NULL, 'comment');
}
function comment_num_all($nid) {