[ticket/9892] Q&A CAPTCHA did not work on firebird, so no need to change config

PHPBB3-9892
This commit is contained in:
Nils Adermann 2011-06-12 11:06:52 +02:00
parent 6cab45b28e
commit cd3d23810f

View file

@ -1913,16 +1913,13 @@ function change_database_data(&$no_updates, $version)
} }
$db->sql_freeresult($result); $db->sql_freeresult($result);
global $db_tools; global $db_tools, $table_prefix;
// Recover from potentially broken Q&A CAPTCHA table on firebird // Recover from potentially broken Q&A CAPTCHA table on firebird
// Q&A CAPTCHA was uninstallable, so it's safe to remove these
// without data loss
if ($db_tools->sql_layer == 'firebird') if ($db_tools->sql_layer == 'firebird')
{ {
if ($config['captcha_plugin'] == 'phpbb_captcha_qa')
{
setconfig('captcha_plugin', 'phpbb_captcha_nogd');
}
$tables = array( $tables = array(
$table_prefix . 'captcha_questions', $table_prefix . 'captcha_questions',
$table_prefix . 'captcha_answers', $table_prefix . 'captcha_answers',