summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2013-11-20 08:35:51 (GMT)
committerwebchick2013-11-20 08:35:51 (GMT)
commite86305a061716c258b1818b0d2b1b31bb5a2104c (patch)
treedb7c4c712c2fb80b1b23d327bad00703e6f4a8e2
parente0a0b76f827d46aeddc137ff5e65de23f057bc6e (diff)
Issue #2139407 by amateescu: HEAD broken on Windows.
-rw-r--r--core/lib/Drupal/Core/Config/FileStorage.php2
-rw-r--r--core/lib/Drupal/Core/Config/InstallStorage.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/lib/Drupal/Core/Config/FileStorage.php b/core/lib/Drupal/Core/Config/FileStorage.php
index 2ac9cee..52c9aa5 100644
--- a/core/lib/Drupal/Core/Config/FileStorage.php
+++ b/core/lib/Drupal/Core/Config/FileStorage.php
@@ -204,7 +204,7 @@ class FileStorage implements StorageInterface {
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) {
diff --git a/core/lib/Drupal/Core/Config/InstallStorage.php b/core/lib/Drupal/Core/Config/InstallStorage.php
index 20d20fc..16bcc1c 100644
--- a/core/lib/Drupal/Core/Config/InstallStorage.php
+++ b/core/lib/Drupal/Core/Config/InstallStorage.php
@@ -134,7 +134,7 @@ class InstallStorage extends FileStorage {
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;
}