public function toHtml()
{
if ($this->validate()) {
- //$this->captchaQuestion->destroy();
+ $this->captchaQuestion->destroy();
$this->cleanForm();
$this->setupRenderers();
if ($this->process(array(&$this, 'processData'), $this->mergeFiles)) {
}
$this->sent = true;
} elseif ($this->isSubmitted()) {
- //$this->captchaQuestion->destroy();
- //$this->captchaAnswer->setValue('');
+ $this->captchaQuestion->destroy();
+ $this->captchaAnswer->setValue('');
$this->setupRenderers();
$output = $this->errorMsg;
$output .= $this->template->bufferedOutputObject($this->view);
} else {
- //$this->captchaQuestion->destroy();
- //$this->captchaAnswer->setValue('');
+ $this->captchaQuestion->destroy();
+ $this->captchaAnswer->setValue('');
$this->setupRenderers();
$output .= $this->template->bufferedOutputObject($this->view);
}