diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-06-26 06:59:46 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-06-26 06:59:46 +0000 |
commit | 73b855f707c6620996fac1af63e1b8090a38d655 (patch) | |
tree | c698ea7fe12c0fa6c98c8437349d61825e495058 /includes | |
parent | b8a31dba9b95c78382bd85e3073ff8b129f53556 (diff) | |
download | brdo-73b855f707c6620996fac1af63e1b8090a38d655.tar.gz brdo-73b855f707c6620996fac1af63e1b8090a38d655.tar.bz2 |
- 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.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/comment.inc | 5 |
1 files changed, 2 insertions, 3 deletions
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 .= "<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) { |