Skip to content

Commit 3325f0d

Browse files
committed
fix update functions errors
1 parent 650cb41 commit 3325f0d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

config/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// Validate the Configure Data
1818
$validator = new ConfigValidator();
1919

20-
$errors = $validator->setErrors(Configure::read('Recaptcha'));
20+
$errors = $validator->errors(Configure::read('Recaptcha'));
2121

2222
if (!empty($errors)) {
2323
$errMsg = '';

src/Controller/Component/RecaptchaComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class RecaptchaComponent extends Component
4949
public function setController($controller)
5050
{
5151
// Add the helper on the fly
52-
if (!in_array('Recaptcha.Recaptcha', $controller->viewBuilder()->setHelpers())) {
52+
if (!in_array('Recaptcha.Recaptcha', $controller->viewBuilder()->getHelpers())) {
5353
$controller->viewBuilder()->setHelpers(['Recaptcha.Recaptcha'], true);
5454
}
5555
}

0 commit comments

Comments
 (0)