- 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.
3-00
Dries Buytaert 2001-06-26 06:59:46 +00:00
parent b8a31dba9b
commit 73b855f707
1 changed files with 2 additions and 3 deletions

View File

@ -63,8 +63,7 @@ function comment_form($edit) {
$form .= form_hidden("pid", check_input($edit[pid])); $form .= form_hidden("pid", check_input($edit[pid]));
$form .= form_hidden("id", check_input($edit[id])); $form .= form_hidden("id", check_input($edit[id]));
if (empty($edit[subject])) { if (!$edit[comment]) {
$form .= "<FONT COLOR=\"red\">". t("Warning: you did not supply a subject.") ."</FONT><P>\n";
$form .= form_submit(t("Preview comment")); $form .= form_submit(t("Preview comment"));
} }
else { else {
@ -72,7 +71,7 @@ function comment_form($edit) {
$form .= form_submit(t("Post comment")); $form .= form_submit(t("Post comment"));
} }
return form($REQUEST_URL, $form); return form($REQUEST_URI, $form);
} }
function comment_reply($pid, $id) { function comment_reply($pid, $id) {