only load captcha helper if requiring captcha, use our own constant for mysql datetime
This commit is contained in:
@@ -57,7 +57,8 @@ class ContactUsComponent extends Component
|
||||
$this->setConfig('requireEmail', Configure::readOrFail('ContactUs.fields.email'));
|
||||
$this->setConfig('requireCaptcha', $requireCaptcha);
|
||||
if ($requireCaptcha) {
|
||||
$this->_registry->load('Captcha.Captcha');
|
||||
// $this->_registry->load('Captcha.Captcha');
|
||||
$this->getController()->viewBuilder()->addHelpers(['Captcha.Captcha']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user