Localisation updates (extensions) from Betawiki (2008-06-25 22:11 CEST)
[toast/cookiecaptcha.git] / MathCaptcha.class.php
index a51e7fae6b857ab4f987f2613eca0643a698b6dd..66567e03503495846d449beb17a4e463030ce78c 100644 (file)
@@ -11,8 +11,9 @@ class MathCaptcha extends SimpleCaptcha {
                list( $sum, $answer ) = $this->pickSum();
                $index = $this->storeCaptcha( array('answer' => $answer ) );
                $resultArr['captcha']['type'] = 'math';
+               $resultArr['captcha']['mime'] = 'text/tex';
                $resultArr['captcha']['id'] = $index;
-               $resultArr['captcha']['sum'] = $sum;
+               $resultArr['captcha']['question'] = $sum;
        }
        
        /** Produce a nice little form */