]> git.openstreetmap.org Git - osqa.git/commitdiff
Fix local variable name of the captcha check form
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 4 Jan 2011 09:28:27 +0000 (09:28 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 4 Jan 2011 09:28:27 +0000 (09:28 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@666 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum_modules/akismet/startup.py

index 40b13d50f6f2b6250a7d774d4472934e01061d4e..d587ea1c00d9f6adefb5da9c767bae7a44912e34 100644 (file)
@@ -52,7 +52,7 @@ def check_spam(param, comment_type):
                     captcha_checked = False
                     
                     if RECAPTCHA_PUB_KEY and RECAPTCHA_PRIV_KEY:
-                        if form.is_valid():
+                        if captcha_form.is_valid():
                             captcha_checked = True
                     
                     if not captcha_checked: