summaryrefslogtreecommitdiff
path: root/src/Middleware/LegacyMiddleware.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Middleware/LegacyMiddleware.php')
-rw-r--r--src/Middleware/LegacyMiddleware.php2
1 files changed, 1 insertions, 1 deletions
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 = '';