From afa4506e11f96d05a727e591301f98fb50f8fad4 Mon Sep 17 00:00:00 2001 From: Janne Heß Date: Thu, 7 Mar 2019 13:01:52 +0100 Subject: Support alternative home sites --- src/Middleware/LegacyMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Middleware/LegacyMiddleware.php') diff --git a/src/Middleware/LegacyMiddleware.php b/src/Middleware/LegacyMiddleware.php index 8524764f..0aca3813 100644 --- a/src/Middleware/LegacyMiddleware.php +++ b/src/Middleware/LegacyMiddleware.php @@ -71,7 +71,7 @@ class LegacyMiddleware implements MiddlewareInterface $page = str_replace('-', '_', $page); } if ($page == '/') { - $page = $this->auth->user() ? 'news' : 'login'; + $page = $this->auth->user() ? config('home_site') : 'login'; } $title = $content = ''; -- cgit v1.2.3-70-g09d2