mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Force the database connection to use to avoid a couple of problems seen in internal testing
git-svn-id: file:///svn/phpbb/trunk@6137 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
4c457ecc92
commit
fdd82e4c12
1 changed files with 2 additions and 2 deletions
|
@ -1691,7 +1691,7 @@ class install_install extends module
|
|||
switch ($dbms)
|
||||
{
|
||||
case 'mysql4':
|
||||
if (version_compare(mysql_get_server_info(), '4.0.0', '<'))
|
||||
if (version_compare(mysql_get_server_info($db->db_connect_id), '4.0.0', '<'))
|
||||
{
|
||||
$error[] = $lang['INST_ERR_DB_NO_MYSQL4'];
|
||||
}
|
||||
|
@ -1699,7 +1699,7 @@ class install_install extends module
|
|||
break;
|
||||
|
||||
case 'mysqli':
|
||||
if (version_compare(mysqli_get_server_info(), '4.1.3', '<'))
|
||||
if (version_compare(mysqli_get_server_info($db->db_connect_id), '4.1.3', '<'))
|
||||
{
|
||||
$error[] = $lang['INST_ERR_DB_NO_MYSQLI'];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue