Replace some tabs that managed to slip in. What is Eclipse playing at?

This commit is contained in:
tjhunt 2008-03-07 12:36:16 +00:00
parent a6a89b9eab
commit 6b84dd19ac
2 changed files with 4 additions and 4 deletions

View File

@ -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 .
'&amp;attempt=' . $attemptid, 'quizpopup', $linktext, '', '', '', $windowoptions, true);
'&amp;attempt=' . $attemptid, 'quizpopup', $linktext, '', '', '', $windowoptions, true);
}
/**

View File

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