summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/comment.inc5
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) {