mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-14 15:37:53 +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') {
|
} elseif ($filename === 'shared.liquid') {
|
||||||
$sharedLiquidPath = $filepath;
|
$sharedLiquidPath = $filepath;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// If we found both required files, break the loop
|
// Check if shared.liquid exists in the same directory as full.liquid
|
||||||
if ($settingsYamlPath && $fullLiquidPath) {
|
if ($settingsYamlPath && $fullLiquidPath && ! $sharedLiquidPath) {
|
||||||
break;
|
$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