mirror of
https://github.com/moodle/moodle.git
synced 2025-04-23 09:23:09 +02:00
MDL-13806 - supplimental - bug fixes to the previous commit.
This commit is contained in:
parent
68e3ffbbfa
commit
44266ca4ef
mod/quiz
@ -605,6 +605,7 @@ class password_access_rule extends quiz_access_rule_base {
|
||||
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);
|
||||
@ -696,7 +697,7 @@ class securewindow_access_rule extends quiz_access_rule_base {
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -52,9 +52,6 @@
|
||||
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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user