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() ?? '') ?? '');
|
$projectPath = dirname(realpath(Factory::getComposerFile() ?? '') ?? '');
|
||||||
|
|
||||||
// Find public path
|
// Find public path
|
||||||
$candidatePublicPath = $projectPath . DIRECTORY_SEPARATOR . RecipePlugin::PUBLIC_PATH;
|
$publicPath = $projectPath . DIRECTORY_SEPARATOR . RecipePlugin::PUBLIC_PATH;
|
||||||
$publicPath = is_dir($candidatePublicPath ?? '') ? $candidatePublicPath : $projectPath;
|
|
||||||
|
|
||||||
// Copy project files to root
|
// Copy project files to root
|
||||||
$name = $package->getName();
|
$name = $package->getName();
|
||||||
|
|
Loading…
Reference in New Issue