Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
e86305a0
Commit
e86305a0
authored
Nov 20, 2013
by
Angie Byron
Browse files
Issue
#2139407
by amateescu: HEAD broken on Windows.
parent
e0a0b76f
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/lib/Drupal/Core/Config/FileStorage.php
View file @
e86305a0
...
...
@@ -204,7 +204,7 @@ public function listAll($prefix = '') {
throw
new
StorageException
(
$this
->
directory
.
'/ not found.'
);
}
$extension
=
'.'
.
static
::
getFileExtension
();
$files
=
new
\
GlobIterator
(
$this
->
directory
.
'/'
.
$prefix
.
'*'
.
$extension
);
$files
=
new
\
GlobIterator
(
DRUPAL_ROOT
.
'/'
.
$this
->
directory
.
'/'
.
$prefix
.
'*'
.
$extension
);
$names
=
array
();
foreach
(
$files
as
$file
)
{
...
...
core/lib/Drupal/Core/Config/InstallStorage.php
View file @
e86305a0
...
...
@@ -134,7 +134,7 @@ public function getComponentNames($type, array $list) {
foreach
(
$list
as
$name
)
{
$directory
=
$this
->
getComponentFolder
(
$type
,
$name
);
if
(
file_exists
(
$directory
))
{
$files
=
new
\
GlobIterator
(
$directory
.
'/*'
.
$extension
);
$files
=
new
\
GlobIterator
(
DRUPAL_ROOT
.
'/'
.
$directory
.
'/*'
.
$extension
);
foreach
(
$files
as
$file
)
{
$folders
[
$file
->
getBasename
(
$extension
)]
=
$directory
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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