Skip to content

Commit 5009d0b

Browse files
committed
missing updates
1 parent 3325f0d commit 5009d0b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/View/Helper/RecaptchaHelper.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,22 @@ public function __construct(View $view, $config = [])
5959
parent::__construct($view, $config);
6060

6161
// Merge Options given by user in config/recaptcha
62-
$this->config(Configure::read('Recaptcha'));
62+
$this->setConfig(Configure::read('Recaptcha'));
6363

6464
$lang = $this->getConfig('lang');
6565
if (empty($lang)) {
6666
$this->setConfig('lang', I18n::locale());
6767
}
6868
// Validate the Configure Data
6969
$validator = new RecaptchaValidator();
70-
$errors = $validator->setErrors($this->getConfig());
70+
$errors = $validator->errors($this->getConfig());
7171
if (!empty($errors)) {
7272
throw new \Exception(__d('recaptcha', 'One of your recaptcha config value is incorrect'));
7373
// throw an exception with config error that is raised
7474
}
7575

7676
// Make sure the secret param is
77-
$this->config('secret', '');
77+
$this->setConfig('secret', '');
7878
}
7979

8080
/**
@@ -95,7 +95,7 @@ public function display(array $options = [])
9595

9696
// Validate the Configure Data
9797
$validator = new RecaptchaValidator();
98-
$errors = $validator->setErrors($options);
98+
$errors = $validator->errors($options);
9999
if (!empty($errors)) {
100100
throw new \Exception(__d('recaptcha', 'One of your recaptcha config value is incorrect'));
101101
// throw an exception with config error that is raised
@@ -137,7 +137,7 @@ public function widget(array $options = [])
137137

138138
// Validate the Configure Data
139139
$validator = new RecaptchaValidator();
140-
$errors = $validator->setErrors($options);
140+
$errors = $validator->errors($options);
141141
if (!empty($errors)) {
142142
throw new \Exception(__d('recaptcha', 'One of your recaptcha config value is incorrect in a widget'));
143143
// throw an exception with config error that is raised

0 commit comments

Comments
 (0)