Ensure we don't preload index data on non-index pages

This commit is contained in:
Toby Zerner 2015-07-23 14:33:31 +09:30
parent 806f67f7eb
commit 6d57f902b3
3 changed files with 5 additions and 5 deletions

View File

@ -18,7 +18,7 @@ class RegisterForumRoutes
$this->routes = $routes;
}
public function get($url, $name, $action = 'Flarum\Forum\Actions\IndexAction')
public function get($url, $name, $action = 'Flarum\Forum\Actions\ClientAction')
{
$this->route('get', $url, $name, $action);
}

View File

@ -2,7 +2,7 @@
use Flarum\Support\ClientAction as BaseClientAction;
abstract class ClientAction extends BaseClientAction
class ClientAction extends BaseClientAction
{
/**
* {@inheritdoc}

View File

@ -67,19 +67,19 @@ class ForumServiceProvider extends ServiceProvider
$routes->get(
'/u/{username}[/{filter}]',
'flarum.forum.user',
$this->action('Flarum\Forum\Actions\IndexAction')
$this->action('Flarum\Forum\Actions\ClientAction')
);
$routes->get(
'/settings',
'flarum.forum.settings',
$this->action('Flarum\Forum\Actions\IndexAction')
$this->action('Flarum\Forum\Actions\ClientAction')
);
$routes->get(
'/notifications',
'flarum.forum.notifications',
$this->action('Flarum\Forum\Actions\IndexAction')
$this->action('Flarum\Forum\Actions\ClientAction')
);
$routes->get(