diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-29 09:27:44 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-29 09:27:44 -0700 |
commit | e45ea9359d6cb603be0bc28376d92883aa8d7c7e (patch) | |
tree | 6d41b69e789c5d1c70aa37265c60571184aec025 /modules/comment/helpers | |
parent | bfafef95e8090b66f3322f73e532056b10ca116a (diff) |
Cleanup typo and change what is passwed into the event. pass the group that the recaptch element should be attached to instead of the whole form. This allows the recaptch event to have no knowledge of the containing form.
Diffstat (limited to 'modules/comment/helpers')
-rw-r--r-- | modules/comment/helpers/comment.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php index 37b11206..2b651118 100644 --- a/modules/comment/helpers/comment.php +++ b/modules/comment/helpers/comment.php @@ -72,7 +72,7 @@ class comment_Core { $group->input("url") ->label(t("Website (hidden)"))->id("g-url"); $group->textarea("text")->label(t("Comment")) ->id("g-text"); $group->hidden("item_id")->value($item->id); - module::event("recaptcha_add", $form); + module::event("recaptcha_add", $group); $group->submit("")->value(t("Add"))->class("ui-state-default ui-corner-all"); $active = identity::active_user(); |