]> git.mjollnir.org Git - moodle.git/commitdiff
Replace some tabs that managed to slip in. What is Eclipse playing at?
authortjhunt <tjhunt>
Fri, 7 Mar 2008 12:36:16 +0000 (12:36 +0000)
committertjhunt <tjhunt>
Fri, 7 Mar 2008 12:36:16 +0000 (12:36 +0000)
mod/quiz/accessrules.php
mod/quiz/locallib.php

index 2a2ea4e21ffbbcbc8e3e1a4f607d6ad7c5f69b23..9e0b1641acdd071c73ab32d55abee54c4070ca72 100644 (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);
     }
 
     /**
index a48c4fcf8b5c554e784c3745937a64bd7783d020..e98499d8dc391b5f4155595aba7382c908c83692 100644 (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 . ')');
 }