Commit 3fe8963f authored by Dries's avatar Dries
Browse files

- Patch #298391 by catch, chx: fixed database initialization during install failure.

parent fdc3ee10
......@@ -215,7 +215,8 @@ function drupal_detect_database_types() {
// file for the driver explicitly.
foreach (glob('./includes/database/*/{install,database}.inc', GLOB_BRACE) as $file) {
include_once($file);
$drivers[max(explode('/', $file, -1))] = $file;
$dir_parts = explode('/', $file, -1);
$drivers[end($dir_parts)] = $file;
}
foreach ($drivers as $driver => $file) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment