Commit 545fb616 authored by Adrian Rossouw's avatar Adrian Rossouw Committed by adrian

Ignore symlinks when importing site directories. This created bogus site nodes

parent 5b1f9d26
......@@ -548,7 +548,7 @@ function provision_drupal_find_sites() {
if ($dir = opendir("./sites")) {
while (FALSE !== ($subdir = readdir($dir))) {
$file = "./sites/$subdir/settings.php";
if (file_exists("$file") && ($subdir != 'default')) {
if (file_exists("$file") && ($subdir != 'default') && !is_link("./sites/$subdir")) {
$sites[$subdir] = $file;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment