print_header();
print_box_start();
if ($message) {
- echo '<p>' . $message . '</p><p>' . get_string('windowclosing', 'quiz') . '</p>';
- $delay = 5;
+ echo '<p>' . $message . '</p><p>' . get_string('windowclosing', 'quiz') . '</p>';
+ $delay = 5;
} else {
echo '<p>' . get_string('pleaseclose', 'quiz') . '</p>';
$delay = 0;
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, '', '', '', $windowoptions, true);
}
/**
function quiz_get_latest_attempt_by_user($quizid, $userid) {
global $CFG;
return get_record_sql('SELECT qa.* FROM ' . $CFG->prefix . 'quiz_attempts qa
- WHERE qa.quiz=' . $quizid . ' AND qa.userid=' . $userid . ' AND qa.timestart = (
+ WHERE qa.quiz=' . $quizid . ' AND qa.userid=' . $userid . ' AND qa.timestart = (
SELECT MAX(timestart) FROM ' . $CFG->prefix . 'quiz_attempts ssqa
WHERE ssqa.quiz=' . $quizid . ' AND ssqa.userid=' . $userid . ')');
}