mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
fix(#123): shared layout not prepended when installing recipe
This commit is contained in:
parent
7c8e55588a
commit
0322ec899e
1 changed files with 6 additions and 3 deletions
|
|
@ -349,10 +349,13 @@ class PluginImportService
|
|||
} elseif ($filename === 'shared.liquid') {
|
||||
$sharedLiquidPath = $filepath;
|
||||
}
|
||||
}
|
||||
|
||||
// If we found both required files, break the loop
|
||||
if ($settingsYamlPath && $fullLiquidPath) {
|
||||
break;
|
||||
// Check if shared.liquid exists in the same directory as full.liquid
|
||||
if ($settingsYamlPath && $fullLiquidPath && ! $sharedLiquidPath) {
|
||||
$fullLiquidDir = dirname((string) $fullLiquidPath);
|
||||
if (File::exists($fullLiquidDir.'/shared.liquid')) {
|
||||
$sharedLiquidPath = $fullLiquidDir.'/shared.liquid';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue