summaryrefslogtreecommitdiff
path: root/modules/comment/controllers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-05-14 16:19:53 -0700
committerBharat Mediratta <bharat@menalto.com>2010-05-14 16:19:53 -0700
commitad0e7254eb6e6a763c9b4d0a7252dc5982a814be (patch)
treef79887f228374640ab2cc80f3c638fc3eb62e1b4 /modules/comment/controllers
parent9affa8ebbd539396d71f19003b91af577a8a183e (diff)
Require a well-formed email address for all comments.
Diffstat (limited to 'modules/comment/controllers')
-rw-r--r--modules/comment/controllers/comments.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/comment/controllers/comments.php b/modules/comment/controllers/comments.php
index 9e0f86d2..465b1bcd 100644
--- a/modules/comment/controllers/comments.php
+++ b/modules/comment/controllers/comments.php
@@ -58,6 +58,7 @@ class Comments_Controller extends Controller {
"view" => (string) $view,
"form" => (string) comment::get_add_form($item)));
} else {
+ $form = comment::prefill_add_form($form);
print json_encode(array("result" => "error", "form" => (string) $form));
}
}
@@ -69,6 +70,6 @@ class Comments_Controller extends Controller {
$item = ORM::factory("item", $item_id);
access::required("view", $item);
- print comment::get_add_form($item);
+ print comment::prefill_add_form(comment::get_add_form($item));
}
}