FIX Always put public resources in a public/ dir (#31)
This commit is contained in:
parent
cb22983fa8
commit
f003b8d56d
|
@ -185,8 +185,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();
|
||||
|
|
Loading…
Reference in New Issue