#716394 by boombatower: SimpleTest should respect table prefixes.
parent
7bc4ca4fda
commit
b04816e0fe
|
@ -1540,7 +1540,8 @@ abstract class Database {
|
||||||
// and we put that in the user_agent header. The header HMAC was already
|
// and we put that in the user_agent header. The header HMAC was already
|
||||||
// validated in bootstrap.inc.
|
// validated in bootstrap.inc.
|
||||||
if (isset($_SERVER['HTTP_USER_AGENT']) && preg_match("/^(simpletest\d+);/", $_SERVER['HTTP_USER_AGENT'], $matches)) {
|
if (isset($_SERVER['HTTP_USER_AGENT']) && preg_match("/^(simpletest\d+);/", $_SERVER['HTTP_USER_AGENT'], $matches)) {
|
||||||
$db_prefix .= $matches[1];
|
$db_prefix_string = is_array($db_prefix) ? $db_prefix['default'] : $db_prefix;
|
||||||
|
$db_prefix = $db_prefix_string . $matches[1];
|
||||||
}
|
}
|
||||||
return $new_connection;
|
return $new_connection;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue