From 329c3b14d5dd81821acba503bd265714bd5b397d Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 31 Jan 2021 20:31:13 +0100 Subject: [PATCH] Make it easier to switch between v1/v2 layout. --- bootstrap/app.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bootstrap/app.php b/bootstrap/app.php index 2ba4fb5aa6..10cb63c83b 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -91,12 +91,11 @@ if (!function_exists('prefixView')) { // do something with view: $layout = env('FIREFLY_III_LAYOUT', 'v1'); $prefixView = sprintf('%s/%s', $layout, $view); - if(false ===$factory->exists($view)) { + if(false ===$factory->exists($prefixView)) { // fall back to v1. $prefixView = sprintf('%s/%s', 'v1', $view); } } - return $factory->make($prefixView, $data, $mergeData); } }