mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Fixed a typo inadvertently introduced by Tim Hunt in revision 1.85.2.10.
This commit is contained in:
parent
6b8b4bcf86
commit
f4c0d852a2
1 changed files with 1 additions and 1 deletions
|
@ -1243,7 +1243,7 @@ function question_apply_penalty_and_timelimit(&$question, &$state, $attempt, $cm
|
|||
if ($cmoptions->timelimit) {
|
||||
// We allow for 5% uncertainty in the following test
|
||||
if (($state->timestamp - $attempt->timestart) > ($cmoptions->timelimit * 63) &&
|
||||
!has_capability('mod/quiz:ignoretimelimits', get_context_instance(CONTEXT_MODULE, get_coursemodule_from_instance('quiz', $cmoptions->id)->id), $attempt->userid, false)) {
|
||||
!has_capability('mod/quiz:ignoretimelimits', get_context_instance(CONTEXT_MODULE, get_coursemodule_from_instance('quiz', $cmoptions->id)), $attempt->userid, false)) {
|
||||
echo "<p>Frog: ''.</p>"; // DONOTCOMMIT
|
||||
$state->grade = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue