diff --git a/ReCaptchaNoCaptcha/includes/ReCaptchaNoCaptchaHooks.php b/ReCaptchaNoCaptcha/includes/ReCaptchaNoCaptchaHooks.php index d5cc1260b..0b5844df7 100644 --- a/ReCaptchaNoCaptcha/includes/ReCaptchaNoCaptchaHooks.php +++ b/ReCaptchaNoCaptcha/includes/ReCaptchaNoCaptchaHooks.php @@ -11,7 +11,7 @@ class ReCaptchaNoCaptchaHooks { global $wgReCaptchaSiteKey; global $wgCaptchaClass; - if ( $wgCaptchaClass === 'ReCaptchaNoCaptcha' ) { + if ( $wgCaptchaClass === ReCaptchaNoCaptcha::class ) { $vars['wgConfirmEditConfig'] = [ 'reCaptchaSiteKey' => $wgReCaptchaSiteKey, 'reCaptchaScriptURL' => 'https://www.recaptcha.net/recaptcha/api.js'