validate_args($args, ['option', 'option']); parent::before_filter($action, $args); $this->flash = Trails_Flash::instance(); // Set help keyword for Stud.IP's user-documentation and page title PageLayout::setHelpKeyword('Basis.Forum'); PageLayout::setTitle(Context::getHeaderLine() .' - '. _('Forum')); // the default for displaying timestamps $this->time_format_string = "%a %d. %B %Y, %H:%M"; $this->time_format_string_short = "%d.%m.%Y, %H:%M"; //$this->getId() depends on Context::get() checkObject(); ForumVisit::setVisit($this->getId()); if (Request::int('page')) { ForumHelpers::setPage(Request::int('page')); } $this->seminar_id = $this->getId(); $this->no_entries = false; $this->highlight = []; $this->highlight_topic = ''; $this->edit_posting = ''; $this->js = ''; } }