diff --git a/dist-persist/wbstack/src/Settings/LocalSettings.php b/dist-persist/wbstack/src/Settings/LocalSettings.php index e9c14523d..b9c18a361 100644 --- a/dist-persist/wbstack/src/Settings/LocalSettings.php +++ b/dist-persist/wbstack/src/Settings/LocalSettings.php @@ -463,6 +463,14 @@ function onSkinTemplateNavigationUniversal( SkinTemplate $skin, array &$links ) $wgReCaptchaSiteKey = getenv('MW_RECAPTCHA_SITEKEY'); $wgReCaptchaSecretKey = getenv('MW_RECAPTCHA_SECRETKEY'); +# QuestyCaptcha +$wwUseQuestyCaptcha = $wikiInfo->getSetting('wwUseQuestyCaptcha'); +if ($wwUseQuestyCaptcha) { + $wgCaptchaClass = 'QuestyCaptcha'; + wfLoadExtensions([ 'ConfirmEdit/QuestyCaptcha' ]); + $wgCaptchaQuestions = $wikiInfo->getSetting('wwCaptchaQuestions'); +} + # Mailgun if ($wwUseMailgunExtension) { wfLoadExtension( 'Mailgun' ); diff --git a/dist/wbstack/src/Settings/LocalSettings.php b/dist/wbstack/src/Settings/LocalSettings.php index e9c14523d..b9c18a361 100644 --- a/dist/wbstack/src/Settings/LocalSettings.php +++ b/dist/wbstack/src/Settings/LocalSettings.php @@ -463,6 +463,14 @@ function onSkinTemplateNavigationUniversal( SkinTemplate $skin, array &$links ) $wgReCaptchaSiteKey = getenv('MW_RECAPTCHA_SITEKEY'); $wgReCaptchaSecretKey = getenv('MW_RECAPTCHA_SECRETKEY'); +# QuestyCaptcha +$wwUseQuestyCaptcha = $wikiInfo->getSetting('wwUseQuestyCaptcha'); +if ($wwUseQuestyCaptcha) { + $wgCaptchaClass = 'QuestyCaptcha'; + wfLoadExtensions([ 'ConfirmEdit/QuestyCaptcha' ]); + $wgCaptchaQuestions = $wikiInfo->getSetting('wwCaptchaQuestions'); +} + # Mailgun if ($wwUseMailgunExtension) { wfLoadExtension( 'Mailgun' );