From: gustav_delius Date: Tue, 11 Apr 2006 21:49:43 +0000 (+0000) Subject: Teachers now can preview timelimited quizzes even after the closing date X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2e8973e77911fc22725bacd96f89552a1795d72e;p=moodle.git Teachers now can preview timelimited quizzes even after the closing date --- diff --git a/mod/quiz/attempt.php b/mod/quiz/attempt.php index e7e57717a4..b865d5d384 100644 --- a/mod/quiz/attempt.php +++ b/mod/quiz/attempt.php @@ -538,6 +538,10 @@ $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) {