1
0
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:
tjhunt 2008-03-25 19:40:42 +00:00
parent 68e3ffbbfa
commit 44266ca4ef
2 changed files with 2 additions and 4 deletions

@ -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');