Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fall back on default layout if no page is present (yet)
James Colef1173263b645
diff --git a/config/view.php b/config/view.phpindex d38cd36ef2..20ff1589d5 100644--- a/config/view.php+++ b/config/view.php@@ -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,/*|--------------------------------------------------------------------------diff --git a/resources/views/v2/index.blade.php b/resources/views/v2/index.blade.phpindex 6217e68a46..d2a3e9d229 100644--- a/resources/views/v2/index.blade.php+++ b/resources/views/v2/index.blade.php@@ -1,4 +1,4 @@-@extends('layout.default')+@extends('layout.v2')@section('vite')@vite(['resources/assets/v2/sass/app.scss', 'resources/assets/v2/dashboard.js'])@endsectiondiff --git a/resources/views/v2/layout/default.blade.php b/resources/views/v2/layout/v2.blade.phpsimilarity index 100%rename from resources/views/v2/layout/default.blade.phprename to resources/views/v2/layout/v2.blade.php