aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/course/forum/recent.php
blob: 7a117cdb8fe417e14f0e66ebe9651b1f598c5f0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
require_once 'BaseController.php';

class Course_Forum_RecentController extends Forum\BaseController
{
    public function before_filter(&$action, &$args)
    {
        parent::before_filter($action, $args);

        Navigation::activateItem('course/forum/topics');
    }

    public function index_action()
    {
        PageLayout::setTitle(_('Neueste Beiträge'));

        $this->render_vue_app(
            Studip\VueApp::create('forum/recent/Index')
                ->withProps([
                    'last_visit' => Request::int('last_visit')
                ])
        );
    }
}