private function edit_comment_form($com) { global $CFG; require_once($CFG->dirroot . '/mod/wiki/comments_form.php'); require_once($CFG->dirroot . '/mod/wiki/editors/wiki_editor.php'); if ($this->format == 'html') { $com->action = 'edit'; $com->entrycomment_editor['text'] = $com->content; $com->commentoptions = array('trusttext' => true, 'maxfiles' => 0); $this->form->set_data($com); $this->form->display(); } else { wiki_print_editor_wiki($this->page->id, $com->content, $this->format, -1, null, false, array(), 'editcomments', $com->id); } }
private function edit_comment_form($com) { global $CFG; require_once $CFG->dirroot . '/mod/wiki/comments_form.php'; require_once $CFG->dirroot . '/mod/wiki/editors/wiki_editor.php'; if ($this->format == 'html') { $commentoptions = array('trusttext' => true, 'maxfiles' => 0); $com->action = 'edit'; $com->entrycomment_editor['text'] = $com->content; $this->form->set_data($com, $commentoptions); $this->form->display(); } else { $action = 'edit'; $commentid = $com->id; $pageid = $this->page->id; $destination = $CFG->wwwroot . '/mod/wiki/instancecomments.php?pageid=' . $pageid . '&id=' . $commentid . '&action=' . $action; wiki_print_editor_wiki($this->page->id, $com->content, $this->format, -1, null, false, array(), 'editcomments', $commentid); } }