This commit is contained in:
Cyberes 2020-10-24 19:11:52 -06:00
parent 980b19591b
commit acea0a75b9
1 changed files with 7 additions and 5 deletions

View File

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