mirror of
https://github.com/flarum/framework.git
synced 2025-02-12 00:46:32 +08:00
Fix a missed getRouteData() (#2774)
This commit is contained in:
parent
fa249d9bc0
commit
e4d5a328f3
|
@ -205,7 +205,7 @@ class ForumServiceProvider extends AbstractServiceProvider
|
||||||
$defaultRoute = $this->container->make('flarum.settings')->get('default_route');
|
$defaultRoute = $this->container->make('flarum.settings')->get('default_route');
|
||||||
|
|
||||||
if (isset($routes->getRouteData()[0]['GET'][$defaultRoute]['handler'])) {
|
if (isset($routes->getRouteData()[0]['GET'][$defaultRoute]['handler'])) {
|
||||||
$toDefaultController = $routes->getRoutes()['GET'][$defaultRoute]['handler'];
|
$toDefaultController = $routes->getRouteData()[0]['GET'][$defaultRoute]['handler'];
|
||||||
} else {
|
} else {
|
||||||
$toDefaultController = $factory->toForum(Content\Index::class);
|
$toDefaultController = $factory->toForum(Content\Index::class);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user