From e13388c1c06f20f08dd7770e7ff296eeb176e44d Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Fri, 8 Jun 2012 10:47:31 +0800 Subject: [PATCH] MDL-32783 quiz overdue handling: improve lang string And remove a stray # --- mod/quiz/lang/en/quiz.php | 2 +- mod/quiz/processattempt.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/quiz/lang/en/quiz.php b/mod/quiz/lang/en/quiz.php index 2147fd5ae18..af3f10413af 100644 --- a/mod/quiz/lang/en/quiz.php +++ b/mod/quiz/lang/en/quiz.php @@ -335,7 +335,7 @@ $string['graceperiod_desc'] = 'If what to do when time expires is set to \'Allow $string['graceperiod_help'] = 'If what to do when time expires is set to \'Allow a grace period to submit, but not change any responses\', the amount of extra time that is allowed.'; $string['graceperiodmin'] = 'Last submission grace period'; $string['graceperiodmin_desc'] = 'There is a potential problem right at the end of the quiz. On the one hand, we want to let students continue working right up until the last second - with the help of the timer that automatically submits the quiz when time runs out. On the other hand, the server may then be overloaded, and take some time to get to process the responses. Therefore, we will accept responses for up to this many seconds after time expires, so they are not penalised for the server being slow. However, the student could cheat and get this many seconds to answer the quiz. You have to make a trade-off based on how much you trust the performance of your server during quizzes.'; -$string['graceperiodtoosmall'] = 'The grace period must be at more than {$a}.'; +$string['graceperiodtoosmall'] = 'The grace period must be more than {$a}.'; $string['grade'] = 'Grade'; $string['gradeall'] = 'Grade all'; $string['gradeaverage'] = 'Average grade'; diff --git a/mod/quiz/processattempt.php b/mod/quiz/processattempt.php index f355eb90ad4..1757eb5db41 100644 --- a/mod/quiz/processattempt.php +++ b/mod/quiz/processattempt.php @@ -101,7 +101,7 @@ if ($attemptobj->is_finished()) { $becomingoverdue = false; $becomingabandoned = false; if ($timeup) { - if ($attemptobj->get_quiz()->overduehandling == 'graceperiod') {# + if ($attemptobj->get_quiz()->overduehandling == 'graceperiod') { if (is_null($graceperiodmin)) { $graceperiodmin = get_config('quiz', 'graceperiodmin'); }