mirror of
https://github.com/silverstripe/recipe-plugin.git
synced 2024-10-22 14:05:55 +02:00
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() ?? '') ?? '');
|
$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
Block a user