This commit is contained in:
parent
980b19591b
commit
acea0a75b9
|
@ -61,6 +61,8 @@ class SpecialContact extends UnlistedSpecialPage
|
|||
*/
|
||||
public function execute($par)
|
||||
{
|
||||
global $wgReCaptchaSiteKey, $wgReCaptchaSecretKey;
|
||||
|
||||
if (!$this->getConfig()->get('EnableEmail')) {
|
||||
// From Special:EmailUser
|
||||
throw new ErrorPageError('usermaildisabled', 'usermaildisabledtext');
|
||||
|
@ -180,11 +182,11 @@ class SpecialContact extends UnlistedSpecialPage
|
|||
'default' => $this->formType,
|
||||
],
|
||||
'Captcha' => [
|
||||
'type' => 'info',
|
||||
'label' => 'info',
|
||||
'default' => "<div class=\"g-recaptcha\" data-sitekey=\"{$wgReCaptchaSiteKey}\"></div>",
|
||||
'raw' => true,
|
||||
],
|
||||
'type' => 'info',
|
||||
'label' => 'info',
|
||||
'default' => "<div class=\"g-recaptcha\" data-sitekey=\"{$wgReCaptchaSiteKey}\"></div>",
|
||||
'raw' => true,
|
||||
],
|
||||
];
|
||||
|
||||
$form = HTMLForm::factory(
|
||||
|
|
Loading…
Reference in New Issue