getConfigFactory()->makeConfig( 'hcaptcha' ); if ( $hCaptchaConfig->get( 'CaptchaClass' ) === 'MediaWiki\\Extensions\\ConfirmEdit\\hCaptcha\\HCaptcha' ) { $vars['wgConfirmEditConfig'] = [ 'hCaptchaSiteKey' => $hCaptchaConfig->get( 'HCaptchaSiteKey' ), 'hCaptchaScriptURL' => 'https://hcaptcha.com/1/api.js', ]; } } }