1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-19 06:51:33 +02:00

[ticket/17413] Add language and theme settings for turnstile

PHPBB-17413
This commit is contained in:
Marc Alexander
2024-10-13 14:50:12 +02:00
parent 8290cdb7e7
commit c382f81222
10 changed files with 64 additions and 19 deletions

View File

@@ -20,7 +20,8 @@ class turnstile_captcha extends migration
public function effectively_installed(): bool
{
return $this->config->offsetExists('captcha_turnstile_sitekey')
&& $this->config->offsetExists('captcha_turnstile_secret');
&& $this->config->offsetExists('captcha_turnstile_secret')
&& $this->config->offsetExists('captcha_turnstile_theme');
}
public static function depends_on(): array
@@ -35,6 +36,7 @@ class turnstile_captcha extends migration
return [
['config.add', ['captcha_turnstile_sitekey', '']],
['config.add', ['captcha_turnstile_secret', '']],
['config.add', ['captcha_turnstile_theme', 'light']],
];
}
@@ -43,6 +45,7 @@ class turnstile_captcha extends migration
return [
['config.remove', ['captcha_turnstile_sitekey']],
['config.remove', ['captcha_turnstile_secret']],
['config.remove', ['captcha_turnstile_theme']],
];
}
}