summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-05-03 12:56:57 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-05-03 12:56:57 +0000
commit72f33dde3236b5a97f8d292abd0b01f3fad056e1 (patch)
tree9f93641ce3c391c9fd55962f7ec2426fdf747283 /modules/comment/comment.module
parentce4993d29ca0963c51197bee5a3335fd3630091d (diff)
downloadbrdo-72f33dde3236b5a97f8d292abd0b01f3fad056e1.tar.gz
brdo-72f33dde3236b5a97f8d292abd0b01f3fad056e1.tar.bz2
- fixed comment control settings:
http://www.drupal.org/node.php?id=115
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 6fd9793b8..4cb0bae90 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/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:
}