summaryrefslogtreecommitdiff
path: root/modules/comment.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment.module')
-rw-r--r--modules/comment.module5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/comment.module b/modules/comment.module
index 6fd9793b8..4cb0bae90 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -494,7 +494,8 @@ function comment_render($nid, $cid) {
}
print "<a name=\"comment\"></a>\n";
- print "<form method=\"post\" action=\"". request_uri() ."\">\n";
+ print "<form method=\"post\" action=\"". drupal_url(array("mod" => "comment"), "module") ."\">\n";
+ print form_hidden("nid", $nid);
/*
** Render control panel:
@@ -685,7 +686,9 @@ function comment_page() {
comment_post($edit);
break;
case t("Update settings"):
+ global $mode, $order, $threshold;
comment_settings(check_query($mode), check_query($order), check_query($threshold));
+ drupal_goto(drupal_url(array("id" => $edit["nid"]), "node"));
break;
default:
}