summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/comment/helpers/comment.php2
-rw-r--r--modules/recaptcha/helpers/recaptcha_event.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php
index 2b651118..35685d8c 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", $group);
+ module::event("comment_add_form", $form);
$group->submit("")->value(t("Add"))->class("ui-state-default ui-corner-all");
$active = identity::active_user();
diff --git a/modules/recaptcha/helpers/recaptcha_event.php b/modules/recaptcha/helpers/recaptcha_event.php
index d3e5bca6..feedced4 100644
--- a/modules/recaptcha/helpers/recaptcha_event.php
+++ b/modules/recaptcha/helpers/recaptcha_event.php
@@ -18,9 +18,9 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class recaptcha_event_Core {
- static function recaptcha_add($form) {
+ static function comment_add_form($form) {
if (module::get_var("recaptcha", "public_key")) {
- $form->recaptcha("recaptcha")->label("")->id("g-recaptcha");
+ $form->add_comment->recaptcha("recaptcha")->label("")->id("g-recaptcha");
}
}