Skip to content
Snippets Groups Projects
Commit 73b855f7 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Fixed typo in comment.inc as result of form-ification.  Replying to
  a node was not possible: clicking the Preview button redirected you
  the main page.
parent b8a31dba
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -63,8 +63,7 @@ function comment_form($edit) {
$form .= form_hidden("pid", check_input($edit[pid]));
$form .= form_hidden("id", check_input($edit[id]));
if (empty($edit[subject])) {
$form .= "<FONT COLOR=\"red\">". t("Warning: you did not supply a subject.") ."</FONT><P>\n";
if (!$edit[comment]) {
$form .= form_submit(t("Preview comment"));
}
else {
......@@ -72,7 +71,7 @@ function comment_form($edit) {
$form .= form_submit(t("Post comment"));
}
return form($REQUEST_URL, $form);
return form($REQUEST_URI, $form);
}
function comment_reply($pid, $id) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment