mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-14 03:25:37 +02:00
Merge branch '3.3.x'
This commit is contained in:
commit
7bd8d8f245
@ -170,8 +170,8 @@ class db extends config
|
|||||||
if (!isset($this->config[$key]))
|
if (!isset($this->config[$key]))
|
||||||
{
|
{
|
||||||
$sql = 'INSERT INTO ' . $this->table . ' ' . $this->db->sql_build_array('INSERT', array(
|
$sql = 'INSERT INTO ' . $this->table . ' ' . $this->db->sql_build_array('INSERT', array(
|
||||||
'config_name' => $key,
|
'config_name' => $this->db->sql_escape($key),
|
||||||
'config_value' => $new_value,
|
'config_value' => $this->db->sql_escape($new_value),
|
||||||
'is_dynamic' => ($use_cache) ? 0 : 1));
|
'is_dynamic' => ($use_cache) ? 0 : 1));
|
||||||
$this->db->sql_query($sql);
|
$this->db->sql_query($sql);
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ class google_recaptcha_v3 extends \phpbb\db\migration\migration
|
|||||||
|
|
||||||
foreach (\phpbb\captcha\plugins\recaptcha_v3::get_actions() as $action)
|
foreach (\phpbb\captcha\plugins\recaptcha_v3::get_actions() as $action)
|
||||||
{
|
{
|
||||||
$data[] = ['config.add', ["recaptcha_v3_threshold_{$action}", 0.5]];
|
$data[] = ['config.add', ["recaptcha_v3_threshold_{$action}", '0.5']];
|
||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user