mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Replace some tabs that managed to slip in. What is Eclipse playing at?
This commit is contained in:
parent
a6a89b9eab
commit
6b84dd19ac
@ -243,8 +243,8 @@ class quiz_access_manager {
|
||||
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;
|
||||
@ -696,7 +696,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, '', '', '', $windowoptions, true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -142,7 +142,7 @@ function quiz_get_user_attempt_unfinished($quizid, $userid) {
|
||||
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 . ')');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user