$captcha = $this->getCaptcha();
$index = $this->storeCaptcha( $captcha );
$resultArr['captcha']['type'] = 'simple';
+ $resultArr['captcha']['mime'] = 'text/plain';
$resultArr['captcha']['id'] = $index;
$resultArr['captcha']['question'] = $captcha['question'];
}
$index = $this->storeCaptcha( $info );
$title = Title::makeTitle( NS_SPECIAL, 'Captcha/image' );
$resultArr['captcha']['type'] = 'image';
+ $resultArr['captcha']['mime'] = 'image/png';
$resultArr['captcha']['id'] = $index;
$resultArr['captcha']['url'] = $title->getLocalUrl( 'wpCaptchaId=' . urlencode( $index ) );
}
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']['question'] = $sum;
}