]> git.mjollnir.org Git - moodle.git/commitdiff
Teachers now can preview timelimited quizzes even after the closing date
authorgustav_delius <gustav_delius>
Tue, 11 Apr 2006 21:49:43 +0000 (21:49 +0000)
committergustav_delius <gustav_delius>
Tue, 11 Apr 2006 21:49:43 +0000 (21:49 +0000)
mod/quiz/attempt.php

index e7e57717a49d7ffe422aca7c51b4aa84bb382b9d..b865d5d38491aaaf86db6ccfbc57be4c104d26dc 100644 (file)
 
 
     $secondsleft = ($quiz->timeclose ? $quiz->timeclose : 999999999999) - time();
+    if ($isteacher) {
+        // For teachers ignore the quiz closing time
+        $secondsleft = 999999999999;
+    }
     // If time limit is set include floating timer.
     if ($quiz->timelimit > 0) {