print_header('', '', '', 'quizpassword');
}
if (trim(strip_tags($this->_quiz->intro))) {
+ $formatoptions = new stdClass;
$formatoptions->noclean = true;
$output .= print_box(format_text($this->_quiz->intro, FORMAT_MOODLE, $formatoptions),
'generalbox', 'intro', true);
public function make_review_link($linktext, $attemptid) {
global $CFG;
return link_to_popup_window($CFG->wwwroot . '/mod/quiz/review.php?q=' . $this->_quiz->id .
- '&attempt=' . $attemptid, 'quizpopup', $linktext, '', '', '', $windowoptions, true);
+ '&attempt=' . $attemptid, 'quizpopup', $linktext, '', '', '', $this->windowoptions, true);
}
/**
if (!$attempt->timefinish) {
redirect($CFG->wwwroot . '/mod/quiz/attempt.php?q=' . $quiz->id);
}
- if ($messages = $accessmanager->prevent_review($options)) {
-
- }
/// Can't review other users' attempts.
if (!$reviewofownattempt) {
quiz_error($quiz, 'reviewnotallowed');