Skip to content
Snippets Groups Projects
Commit 3fe8963f authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent fdc3ee10
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -215,7 +215,8 @@ function drupal_detect_database_types() { ...@@ -215,7 +215,8 @@ function drupal_detect_database_types() {
// file for the driver explicitly. // file for the driver explicitly.
foreach (glob('./includes/database/*/{install,database}.inc', GLOB_BRACE) as $file) { foreach (glob('./includes/database/*/{install,database}.inc', GLOB_BRACE) as $file) {
include_once($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) { foreach ($drivers as $driver => $file) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment