Make it easier to switch between v1/v2 layout.

This commit is contained in:
James Cole
2021-01-31 20:29:17 +01:00
parent 21da959203
commit 27815d0311
5 changed files with 42 additions and 12 deletions

View File

@@ -21,13 +21,6 @@
declare(strict_types=1);
// simple hack to force v2. Used for demo until next release.
$layout = env('FIREFLY_III_LAYOUT', 'v1');
if (isset($_GET['layout']) && 'v2' === $_GET['layout'] && 'demo@firefly' === env('DEMO_USERNAME')) {
$layout = 'v2';
}
return [
/*
|--------------------------------------------------------------------------
@@ -41,7 +34,7 @@ return [
*/
'paths' => [
realpath(base_path(sprintf('resources/views/%s', $layout))),
realpath(base_path('resources/views')),
],
/*
@@ -55,6 +48,6 @@ return [
|
*/
'compiled' => realpath(storage_path(sprintf('framework/views/%s', $layout))),
'compiled' => realpath(storage_path('framework/views')),
];