Skip to content

Commit

Permalink
Fix si breaking with uri and default directory (#3591)
Browse files Browse the repository at this point in the history
Fallback to default site directory in SubdirFromUri check
  • Loading branch information
neclimdul authored and greg-1-anderson committed Jun 25, 2018
1 parent bd7b950 commit 2c9a38d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Commands/core/SiteInstallCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,10 @@ protected function getSitesSubdirFromUri($root, $uri)
return $sites[$uri];
}
}
// Fall back to default directory if it exists.
if (file_exists(Path::join($root, 'sites', 'default'))) {
return 'default';
}
return false;
}

Expand Down

0 comments on commit 2c9a38d

Please sign in to comment.