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

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

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

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

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