Skip to content

Commit

Permalink
Fix si breaking with uri and default directory
Browse files Browse the repository at this point in the history
Fallback to default site directory in SubdirFromUri check
  • Loading branch information
neclimdul committed Jun 25, 2018
1 parent bd7b950 commit d893e9f
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 d893e9f

Please sign in to comment.