csc
CI / testsuite (mysql, 8.2, ) (push) Successful in 3m6s
CI / testsuite (mysql, 8.4, ) (push) Successful in 4m16s
CI / testsuite (pgsql, 8.2, ) (push) Successful in 3m11s
CI / testsuite (pgsql, 8.4, ) (push) Successful in 4m13s
CI / testsuite (sqlite, 8.2, ) (push) Successful in 2m56s
CI / testsuite (sqlite, 8.4, ) (push) Successful in 4m20s
CI / Coding Standard & Static Analysis (push) Successful in 2m19s
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Successful in 2m58s
CI / testsuite (mysql, 8.2, ) (push) Successful in 3m6s
CI / testsuite (mysql, 8.4, ) (push) Successful in 4m16s
CI / testsuite (pgsql, 8.2, ) (push) Successful in 3m11s
CI / testsuite (pgsql, 8.4, ) (push) Successful in 4m13s
CI / testsuite (sqlite, 8.2, ) (push) Successful in 2m56s
CI / testsuite (sqlite, 8.4, ) (push) Successful in 4m20s
CI / Coding Standard & Static Analysis (push) Successful in 2m19s
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Successful in 2m58s
This commit is contained in:
@@ -83,12 +83,14 @@ class ContactUsComponent extends Component {
|
||||
$this->setConfig($config);
|
||||
parent::initialize($config); // TODO: Change the autogenerated stub
|
||||
$this->table = TableRegistry::getTableLocator()->get($this->getConfig('model'));
|
||||
if (Configure::read('ContactUs.fields.turnstile') &&
|
||||
$this->getController()->components()->has('FormProtection') &&
|
||||
method_exists($this->getController()->components()->get('FormProtection'), 'unlockFields')
|
||||
) {
|
||||
$this->getController()->components()->get('FormProtection')
|
||||
->unlockFields('cf-turnstile-response');
|
||||
if (!Configure::read('ContactUs.fields.turnstile')) {
|
||||
return;
|
||||
}
|
||||
if (!$this->getController()->components()->has('FormProtection')) {
|
||||
return;
|
||||
}
|
||||
if (method_exists($this->getController()->components()->get('FormProtection'), 'unlockFields')) {
|
||||
$this->getController()->components()->get('FormProtection')->unlockFields('cf-turnstile-response');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user