Skip to content

Commit

Permalink
MDL-32783 quiz overdue handling: improve lang string
Browse files Browse the repository at this point in the history
And remove a stray #
  • Loading branch information
danpoltawski committed Jun 8, 2012
1 parent 583c698 commit e13388c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mod/quiz/lang/en/quiz.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@
$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';
Expand Down
2 changes: 1 addition & 1 deletion mod/quiz/processattempt.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
$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');
}
Expand Down

0 comments on commit e13388c

Please sign in to comment.