Fixed ReCaptcha in RegisterForm
authorSascha Greuel <sascha@softcreatr.de>
Fri, 4 Oct 2013 20:31:32 +0000 (22:31 +0200)
committerSascha Greuel <sascha@softcreatr.de>
Fri, 4 Oct 2013 20:31:32 +0000 (22:31 +0200)
wcfsetup/install/files/lib/form/RegisterForm.class.php

index 84e85ba9fb6ee88c5b6fba89a9c9ab2565e8eca5..931385c2b024cc59cb5c077058d297881e09bf7c 100644 (file)
@@ -73,7 +73,7 @@ class RegisterForm extends UserAddForm {
         * enable recaptcha
         * @var boolean
         */
-       public $useCaptcha = true;
+       public $useCaptcha = REGISTER_USE_CAPTCHA;
        
        /**
         * field names
@@ -109,7 +109,7 @@ class RegisterForm extends UserAddForm {
                        exit;
                }
                
-               if (!REGISTER_USE_CAPTCHA || WCF::getSession()->getVar('recaptchaDone')) {
+               if (!MODULE_SYSTEM_RECAPTCHA || WCF::getSession()->getVar('recaptchaDone')) {
                        $this->useCaptcha = false;
                }