Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 97... Línea 97...
97
    }
97
    }
Línea 98... Línea 98...
98
 
98
 
99
    // Pre-flight check passed.
99
    // Pre-flight check passed.
100
    $accessmanager->notify_preflight_check_passed($currentattemptid);
100
    $accessmanager->notify_preflight_check_passed($currentattemptid);
101
}
-
 
102
if ($currentattemptid) {
-
 
103
    if ($lastattempt->state == quiz_attempt::OVERDUE) {
-
 
104
        redirect($quizobj->summary_url($lastattempt->id));
-
 
105
    } else {
-
 
106
        redirect($quizobj->attempt_url($currentattemptid, $page));
-
 
107
    }
-
 
108
}
-
 
109
 
-
 
Línea -... Línea 101...
-
 
101
}
-
 
102
 
-
 
103
if (!$currentattemptid || $lastattempt->state == quiz_attempt::NOT_STARTED) {
110
$attempt = quiz_prepare_and_start_new_attempt($quizobj, $attemptnumber, $lastattempt);
104
    $attempt = quiz_prepare_and_start_new_attempt($quizobj, $attemptnumber, $lastattempt);
-
 
105
} else {
-
 
106
    $attempt = $lastattempt;
-
 
107
}
-
 
108
if ($attempt->state === quiz_attempt::OVERDUE) {
111
 
109
    redirect($quizobj->summary_url($attempt->id));
-
 
110
} else {