only load captcha helper if requiring captcha, use our own constant for mysql datetime

This commit is contained in:
2025-01-10 01:34:02 -08:00
parent 798635bb33
commit 77f09055c9
3 changed files with 5 additions and 3 deletions

View File

@@ -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']);
}
}