You can have multiple db connection strings in your settings.php files, e.g.
$db_url['default'] = 'mysql://drupal:drupalpass@localhost/drupal47';
$db_url['second'] = 'mysql://second:secondpass@localhost/second';
But systeminfo throws an error with such configurations:
Warning: parse_url() expects parameter 1 to be string, array given in systeminfo.module on line 87
Extend $db = parse_url($db_url); with an array check and you are fine.
if (is_array($db_url)) {
$db = parse_url($db_url['default']);
} else {
$db = parse_url($db_url);
}
This issue also applies to 4.7 version.
Comments
Comment #1
rstamm commentedThanks
Comment #2
rstamm commented