mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 08:35:00 +00:00
Fall back on default layout if no page is present (yet)
This commit is contained in:
@@ -21,9 +21,11 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
$path = realpath(base_path('resources/views'));
|
||||
$paths = [realpath(base_path('resources/views'))];
|
||||
if ('v2' === env('FIREFLY_III_LAYOUT')) {
|
||||
$path = realpath(base_path('resources/views/v2'));
|
||||
$paths = [
|
||||
realpath(base_path('resources/views/v2')),
|
||||
realpath(base_path('resources/views'))];
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +41,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'paths' => [$path,],
|
||||
'paths' => $paths,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user