FIX Always put public resources in a public/ dir
This commit is contained in:
parent
f55a2d91bc
commit
8dab9f18c9
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue