Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3778a0
)
MDL-34231 SCORM: Lock after final attempt when using skip content structure or direct...
author
Dan Marsden
<dan@danmarsden.com>
Mon, 28 Jan 2013 08:17:43 +0000
(21:17 +1300)
committer
Dan Marsden
<dan@danmarsden.com>
Mon, 28 Jan 2013 08:17:43 +0000
(21:17 +1300)
mod/scorm/player.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/scorm/player.php
b/mod/scorm/player.php
index
6a7dda3
..
90dc159
100644
(file)
--- a/
mod/scorm/player.php
+++ b/
mod/scorm/player.php
@@
-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';