mirror of
https://github.com/laravel/valet.git
synced 2026-02-04 16:10:08 +01:00
Site path found, break from loops
This commit is contained in:
@@ -137,10 +137,11 @@ function valet_default_site_path($config)
|
||||
// match dir for lowercase, because Nginx only tells us lowercase names
|
||||
if (strtolower($file) === $siteName) {
|
||||
$valetSitePath = $path.'/'.$file;
|
||||
break;
|
||||
break 2;
|
||||
}
|
||||
if (strtolower($file) === $domain) {
|
||||
$valetSitePath = $path.'/'.$file;
|
||||
break 2;
|
||||
}
|
||||
}
|
||||
closedir($handle);
|
||||
|
||||
Reference in New Issue
Block a user