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
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
...@@ -204,7 +204,7 @@ public function listAll($prefix = '') { ...@@ -204,7 +204,7 @@ public function listAll($prefix = '') {
throw new StorageException($this->directory . '/ not found.'); throw new StorageException($this->directory . '/ not found.');
} }
$extension = '.' . static::getFileExtension(); $extension = '.' . static::getFileExtension();
$files = new \GlobIterator($this->directory . '/' . $prefix . '*' . $extension); $files = new \GlobIterator(DRUPAL_ROOT . '/' . $this->directory . '/' . $prefix . '*' . $extension);
$names = array(); $names = array();
foreach ($files as $file) { foreach ($files as $file) {
......
...@@ -134,7 +134,7 @@ public function getComponentNames($type, array $list) { ...@@ -134,7 +134,7 @@ public function getComponentNames($type, array $list) {
foreach ($list as $name) { foreach ($list as $name) {
$directory = $this->getComponentFolder($type, $name); $directory = $this->getComponentFolder($type, $name);
if (file_exists($directory)) { if (file_exists($directory)) {
$files = new \GlobIterator($directory . '/*' . $extension); $files = new \GlobIterator(DRUPAL_ROOT . '/' . $directory . '/*' . $extension);
foreach ($files as $file) { foreach ($files as $file) {
$folders[$file->getBasename($extension)] = $directory; $folders[$file->getBasename($extension)] = $directory;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment