From 73b855f707c6620996fac1af63e1b8090a38d655 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 26 Jun 2001 06:59:46 +0000 Subject: - 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. --- includes/comment.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'includes') diff --git a/includes/comment.inc b/includes/comment.inc index 7cb59c781..68b4ae977 100644 --- a/includes/comment.inc +++ b/includes/comment.inc @@ -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 .= "". t("Warning: you did not supply a subject.") ."

\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) { -- cgit v1.2.3