mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
Merge branch 'master_MDL-34231' of git://github.com/danmarsden/moodle
This commit is contained in:
commit
cb4adcc4a4
@ -135,6 +135,12 @@ $attemptstr = '&attempt=' . $attempt;
|
||||
|
||||
$result = scorm_get_toc($USER, $scorm, $cm->id, TOCJSLINK, $currentorg, $scoid, $mode, $attempt, true, true);
|
||||
$sco = $result->sco;
|
||||
if ($scorm->lastattemptlock == 1 && $result->attemptleft == 0) {
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->notification(get_string('exceededmaxattempts', 'scorm'));
|
||||
echo $OUTPUT->footer();
|
||||
exit;
|
||||
}
|
||||
|
||||
if (($mode == 'browse') && ($scorm->hidebrowse == 1)) {
|
||||
$mode = 'normal';
|
||||
|
Loading…
x
Reference in New Issue
Block a user