Ejemplo n.º 1
0
 public function edit_action($topic_id = null)
 {
     if (!$GLOBALS['perm']->have_studip_perm("tutor", $_SESSION['SessionSeminar'])) {
         throw new AccessDeniedException();
     }
     $this->topic = new CourseTopic($topic_id);
     $this->dates = CourseDate::findBySeminar_id($_SESSION['SessionSeminar']);
     if (Request::isXhr()) {
         $this->set_layout(null);
         $this->set_content_type('text/html;Charset=windows-1252');
         $this->response->add_header('X-Title', $topic_id ? _("Bearbeiten") . ": " . $this->topic['title'] : _("Neues Thema erstellen"));
     }
 }