summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-11-12 12:24:01 +0000
committerDries Buytaert <dries@buytaert.net>2003-11-12 12:24:01 +0000
commitc629c7bd09397c315487bf0486af2c497a742d44 (patch)
tree216235b4c57e6473c1c158b45f33d1fd1c1b4a0e /modules/comment/comment.module
parentdf44729306d0cfc5b13a71809c6cf0eed7a1c676 (diff)
downloadbrdo-c629c7bd09397c315487bf0486af2c497a742d44.tar.gz
brdo-c629c7bd09397c315487bf0486af2c497a742d44.tar.bz2
- Fixed bug #4080: comments shown against wrong node. Reported by chrish.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module13
1 files changed, 6 insertions, 7 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index d6bc2457f..b75d4c2cf 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -569,6 +569,12 @@ function comment_render($node, $cid = 0) {
if (user_access("access comments")) {
/*
+ ** Save were we come from so we can go back after a reply
+ */
+
+ comment_referer_save();
+
+ /*
** Pre-process variables:
*/
@@ -776,12 +782,6 @@ function comment_render($node, $cid = 0) {
if (user_access("post comments") && node_comment_mode($nid) == 2 && variable_get("comment_form_location", 0)) {
print theme("box", t("Post new comment"), comment_form(array("nid" => $nid)));
}
-
- /*
- ** Save were we come from so we can go back after a reply
- */
-
- comment_referer_save();
}
}
@@ -911,7 +911,6 @@ function comment_page() {
$comments_per_page = $_POST["comments_per_page"];
comment_save_settings(check_query($mode), check_query($order), check_query($threshold), check_query($comments_per_page));
- //drupal_goto(url(comment_referer_load(), "mode=$mode&order=$order&threshold=$threshold&comments_per_page=$comments_per_page"));
drupal_goto(url(comment_referer_load()));
break;
}