Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
f67cddb4
Commit
f67cddb4
authored
Oct 24, 2008
by
Dries
Browse files
- Patch
#302596
by dropcube: remove glob() because it is not available on all supported platforms.
parent
de8ff4ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/install.inc
View file @
f67cddb4
...
...
@@ -211,10 +211,11 @@ function drupal_detect_database_types() {
// without modifying the installer.
// Because we have no registry yet, we need to also include the install.inc
// file for the driver explicitly.
foreach
(
glob
(
DRUPAL_ROOT
.
'/includes/database/*/{install,database}.inc'
,
GLOB_BRACE
)
as
$file
)
{
include_once
$file
;
$dir_parts
=
explode
(
'/'
,
$file
,
-
1
);
$drivers
[
end
(
$dir_parts
)]
=
$file
;
foreach
(
file_scan_directory
(
DRUPAL_ROOT
.
'/includes/database'
,
'/^[a-z]*$/i'
,
array
(
'.'
,
'..'
,
'CVS'
),
0
,
FALSE
)
as
$file
)
{
include_once
"
{
$file
->
filename
}
/install.inc"
;
include_once
"
{
$file
->
filename
}
/database.inc"
;
$drivers
[
$file
->
basename
]
=
$file
->
filename
;
}
foreach
(
$drivers
as
$driver
=>
$file
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment