We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 650cb41 commit 3325f0dCopy full SHA for 3325f0d
2 files changed
config/bootstrap.php
@@ -17,7 +17,7 @@
17
// Validate the Configure Data
18
$validator = new ConfigValidator();
19
20
-$errors = $validator->setErrors(Configure::read('Recaptcha'));
+$errors = $validator->errors(Configure::read('Recaptcha'));
21
22
if (!empty($errors)) {
23
$errMsg = '';
src/Controller/Component/RecaptchaComponent.php
@@ -49,7 +49,7 @@ class RecaptchaComponent extends Component
49
public function setController($controller)
50
{
51
// Add the helper on the fly
52
- if (!in_array('Recaptcha.Recaptcha', $controller->viewBuilder()->setHelpers())) {
+ if (!in_array('Recaptcha.Recaptcha', $controller->viewBuilder()->getHelpers())) {
53
$controller->viewBuilder()->setHelpers(['Recaptcha.Recaptcha'], true);
54
}
55
0 commit comments