mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Make it easier to switch between v1/v2 layout.
This commit is contained in:
@@ -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')),
|
||||
|
||||
];
|
||||
|
Reference in New Issue
Block a user