summaryrefslogtreecommitdiff
path: root/modules/recaptcha/helpers/recaptcha_event.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-29 09:27:44 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-29 09:27:44 -0700
commite45ea9359d6cb603be0bc28376d92883aa8d7c7e (patch)
tree6d41b69e789c5d1c70aa37265c60571184aec025 /modules/recaptcha/helpers/recaptcha_event.php
parentbfafef95e8090b66f3322f73e532056b10ca116a (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/recaptcha/helpers/recaptcha_event.php')
-rw-r--r--modules/recaptcha/helpers/recaptcha_event.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/recaptcha/helpers/recaptcha_event.php b/modules/recaptcha/helpers/recaptcha_event.php
index 6e885656..d3e5bca6 100644
--- a/modules/recaptcha/helpers/recaptcha_event.php
+++ b/modules/recaptcha/helpers/recaptcha_event.php
@@ -20,7 +20,7 @@
class recaptcha_event_Core {
static function recaptcha_add($form) {
if (module::get_var("recaptcha", "public_key")) {
- $form->add_comment->recaptcha("recaptcha")->label("")->id("g-recaptcha");
+ $form->recaptcha("recaptcha")->label("")->id("g-recaptcha");
}
}