1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/17414] Remove install steps for captcha plugins

This should be handled by migrations instead.

PHPBB-17414
This commit is contained in:
Marc Alexander
2024-10-05 17:06:10 +02:00
parent 89bb72c277
commit 8429145241
6 changed files with 54 additions and 37 deletions

View File

@@ -128,11 +128,9 @@ class acp_captcha
if (isset($captchas['available'][$selected]))
{
$old_captcha = $factory->get_instance($config['captcha_plugin']);
$old_captcha->uninstall();
$old_captcha->garbage_collect();
$config->set('captcha_plugin', $selected);
$new_captcha = $factory->get_instance($config['captcha_plugin']);
$new_captcha->install();
$phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_CONFIG_VISUAL');
}