- 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
parent
b8a31dba9b
commit
73b855f707
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue