Fix usage of stringified class name

Change-Id: I626a61fd122361dff7ba6e9422f757347090ae41
This commit is contained in:
Reedy 2022-12-13 20:42:56 +00:00 committed by Bartosz Dziewoński
parent 608dda6ab5
commit 28e07c225e

View file

@ -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'