params->get("classquestion") . '>' . $this->params->get("question") . ''; } /** * Calls an HTTP POST function to verify if the user's guess was correct * * @param string $code Answer provided by user. * * @return True if the answer is correct, false otherwise * * @since 2.5 */ public function onCheckAnswer($code) { $input = JFactory::getApplication()->input; $response = $this->params->get('response'); if ($code == $response) { return true; } else { $this->_subject->setError(JText::_('PLG_SIMPLECAPTCHA_ERROR')); return false; } } }