X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d0a6dd09b9cd9d1c493c15adfd25b880f505e9af..6769f06b626d566508eaa96a9892d05aeb331f24:/cookbooks/mediawiki/templates/default/mw-ext-ConfirmEdit.inc.php.erb?ds=sidebyside diff --git a/cookbooks/mediawiki/templates/default/mw-ext-ConfirmEdit.inc.php.erb b/cookbooks/mediawiki/templates/default/mw-ext-ConfirmEdit.inc.php.erb index 56e0b640a..50e1d4801 100644 --- a/cookbooks/mediawiki/templates/default/mw-ext-ConfirmEdit.inc.php.erb +++ b/cookbooks/mediawiki/templates/default/mw-ext-ConfirmEdit.inc.php.erb @@ -1,9 +1,10 @@ '; -$recaptcha_private_key = '<%= @private_key %>'; +wfLoadExtensions( array( 'ConfirmEdit', 'ConfirmEdit/ReCaptchaNoCaptcha' ) ); +$wgCaptchaClass = 'ReCaptchaNoCaptcha'; +$wgReCaptchaSendRemoteIP = true; +$wgReCaptchaSiteKey = '<%= @public_key %>'; +$wgReCaptchaSecretKey = '<%= @private_key %>'; $wgCaptchaTriggers['addurl'] = true; $wgCaptchaTriggers['create'] = true;