mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-04 06:01:23 -04:00
Revert "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."
Revert "Generalize the adding of the recaptcha form by changing the name of the event to recaptch_add. This prevents us from having to keep modifying the recaptch module anytime we add a form that requires recaptcha." This reverts commitse45ea9359dandbfafef95e8.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user