Minor changes in kernel code.

This commit is contained in:
James Cole
2020-11-25 06:25:08 +01:00
parent 9a658b60fb
commit 16018109c8
3 changed files with 17 additions and 6 deletions

View File

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