Commit 72f33dde authored by Kjartan's avatar Kjartan
Browse files

- fixed comment control settings:

  http://www.drupal.org/node.php?id=115
parent ce4993d2
......@@ -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:
}
......
......@@ -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:
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment