1
0
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:
Mark
2020-12-30 14:24:58 +01:00
committed by GitHub
parent 35676120a7
commit 2c6ad70cc1

View File

@@ -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);