From 541634e0860ecac61fac948a768d98d191f48eef Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Fri, 9 Apr 2021 10:07:25 +0100 Subject: [PATCH] Use standard function to add reCAPTCHA to PCPAccount form --- CRM/PCP/Form/PCPAccount.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CRM/PCP/Form/PCPAccount.php b/CRM/PCP/Form/PCPAccount.php index 70d82bb2c3..5be2e61e82 100644 --- a/CRM/PCP/Form/PCPAccount.php +++ b/CRM/PCP/Form/PCPAccount.php @@ -152,9 +152,7 @@ class CRM_PCP_Form_PCPAccount extends CRM_Core_Form { } if ($addCaptcha) { - $captcha = &CRM_Utils_ReCAPTCHA::singleton(); - $captcha->add($this); - $this->assign('isCaptcha', TRUE); + CRM_Utils_ReCAPTCHA::enableCaptchaOnForm($this); } } -- 2.25.1