From: Steve Sutton Date: Mon, 5 May 2014 19:41:51 +0000 (+0000) Subject: remove code comments X-Git-Tag: v1.0~28 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=5c178975447b2b45df0fa243f0723f303e9167fc;p=web%2FCedarvilleMarine.git remove code comments this will turn of the reset of captcha --- diff --git a/Toolkit/Contacts/ContactUs.php b/Toolkit/Contacts/ContactUs.php index 4905702..96e3409 100755 --- a/Toolkit/Contacts/ContactUs.php +++ b/Toolkit/Contacts/ContactUs.php @@ -1121,7 +1121,7 @@ class Toolkit_Contacts_ContactUs public function toHtml() { if ($this->validate()) { - //$this->captchaQuestion->destroy(); + $this->captchaQuestion->destroy(); $this->cleanForm(); $this->setupRenderers(); if ($this->process(array(&$this, 'processData'), $this->mergeFiles)) { @@ -1131,14 +1131,14 @@ class Toolkit_Contacts_ContactUs } $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); }