summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-11-08 20:57:41 +0000
committerDries Buytaert <dries@buytaert.net>2005-11-08 20:57:41 +0000
commit3d13a38502150ec82f0088ff9f3950169b57f6d9 (patch)
tree62cca47c22bd4909fc7920962f52dc9497e906ce /modules
parent3768616a65f3ef29877e266d973b8d2919470e03 (diff)
downloadbrdo-3d13a38502150ec82f0088ff9f3950169b57f6d9.tar.gz
brdo-3d13a38502150ec82f0088ff9f3950169b57f6d9.tar.bz2
- Patch #36727 by Goba: fixed incorrect use of drupal_goto().
Diffstat (limited to 'modules')
-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) {