Don't check badlogin attempts in memcached if we are not configured to show captchas...
[toast/cookiecaptcha.git] / QuestyCaptcha.class.php
index 635277af513c15a85416849fa7286218c1cbf6bd..8e87db3051a26622b7f126b1941c08955cf1f80f 100644 (file)
@@ -65,7 +65,7 @@ class QuestyCaptcha extends SimpleCaptcha {
                global $wgOut;
                $wgOut->setPageTitle( wfMsg( 'captchahelp-title' ) );
                $wgOut->addWikiText( wfMsg( 'questycaptchahelp-text' ) );
-               if ( $this->storage->cookiesNeeded() ) {
+               if ( CaptchaStore::get()->cookiesNeeded() ) {
                        $wgOut->addWikiText( wfMsg( 'captchahelp-cookies-needed' ) );
                }
        }