diff options
Diffstat (limited to 'phpBB/install')
-rw-r--r-- | phpBB/install/install_convert.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/phpBB/install/install_convert.php b/phpBB/install/install_convert.php index 9a5177c941..0750bfa4f6 100644 --- a/phpBB/install/install_convert.php +++ b/phpBB/install/install_convert.php @@ -196,8 +196,14 @@ class install_convert extends module // This is for making sure the session get not screwed due to the 3.0.x users table being completely new. $cache->purge(); - // Make sure this session gets killed - $user->session_kill(); + require($phpbb_root_path . 'config.' . $phpEx); + require($phpbb_root_path . 'includes/constants.' . $phpEx); + require($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx); + require($phpbb_root_path . 'includes/functions_convert.' . $phpEx); + + $db = new $sql_db(); + $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false); + unset($dbpasswd); switch ($db->sql_layer) { |