Skip to content
Snippets Groups Projects
Commit e86305a0 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2139407 by amateescu: HEAD broken on Windows.

parent e0a0b76f
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment