diff options
author | Igor Wiedler <igor@wiedler.ch> | 2012-11-17 00:24:32 +0100 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2012-11-17 00:24:32 +0100 |
commit | 5bc0f4b3d49ed1bea45464beece42906646eb026 (patch) | |
tree | 947a9f33ad697d821798c042adf28aa8972340c9 /phpBB/install/install_convert.php | |
parent | 8f8a7f76374679d2f893245c1f607a3b2db56a9a (diff) | |
download | forums-5bc0f4b3d49ed1bea45464beece42906646eb026.tar forums-5bc0f4b3d49ed1bea45464beece42906646eb026.tar.gz forums-5bc0f4b3d49ed1bea45464beece42906646eb026.tar.bz2 forums-5bc0f4b3d49ed1bea45464beece42906646eb026.tar.xz forums-5bc0f4b3d49ed1bea45464beece42906646eb026.zip |
[ticket/11015] Move db driver class name fixing to function
PHPBB3-11015
Diffstat (limited to 'phpBB/install/install_convert.php')
-rw-r--r-- | phpBB/install/install_convert.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/install/install_convert.php b/phpBB/install/install_convert.php index 48624dc2b8..9afe341ffa 100644 --- a/phpBB/install/install_convert.php +++ b/phpBB/install/install_convert.php @@ -123,6 +123,8 @@ class install_convert extends module require($phpbb_root_path . 'includes/constants.' . $phpEx); require($phpbb_root_path . 'includes/functions_convert.' . $phpEx); + $dbms = phpbb_convert_30_dbms_to_31($dbms); + $db = new $dbms(); $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false, true); unset($dbpasswd); @@ -210,6 +212,8 @@ class install_convert extends module require($phpbb_root_path . 'includes/constants.' . $phpEx); require($phpbb_root_path . 'includes/functions_convert.' . $phpEx); + $dbms = phpbb_convert_30_dbms_to_31($dbms); + $db = new $dbms(); $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false, true); unset($dbpasswd); @@ -332,6 +336,8 @@ class install_convert extends module require($phpbb_root_path . 'includes/constants.' . $phpEx); require($phpbb_root_path . 'includes/functions_convert.' . $phpEx); + $dbms = phpbb_convert_30_dbms_to_31($dbms); + $db = new $dbms(); $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false, true); unset($dbpasswd); @@ -573,6 +579,8 @@ class install_convert extends module require($phpbb_root_path . 'includes/constants.' . $phpEx); require($phpbb_root_path . 'includes/functions_convert.' . $phpEx); + $dbms = phpbb_convert_30_dbms_to_31($dbms); + $db = new $dbms(); $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false, true); unset($dbpasswd); |