FIX Always put public resources in a public/ dir

This commit is contained in:
Guy Sartorelli 2022-12-14 14:47:50 +13:00
parent f55a2d91bc
commit 8dab9f18c9
No known key found for this signature in database
GPG Key ID: F313E3B9504D496A
1 changed files with 1 additions and 2 deletions

View File

@ -189,8 +189,7 @@ class RecipeInstaller extends LibraryInstaller
$projectPath = dirname(realpath(Factory::getComposerFile() ?? '') ?? '');
// Find public path
$candidatePublicPath = $projectPath . DIRECTORY_SEPARATOR . RecipePlugin::PUBLIC_PATH;
$publicPath = is_dir($candidatePublicPath ?? '') ? $candidatePublicPath : $projectPath;
$publicPath = $projectPath . DIRECTORY_SEPARATOR . RecipePlugin::PUBLIC_PATH;
// Copy project files to root
$name = $package->getName();