MDL-9206 Readded unlimited attempts option (Sorry I miss it)

This commit is contained in:
bobopinna 2007-06-06 21:36:50 +00:00
parent 97be053372
commit 9a71cd85d8

View file

@ -53,6 +53,7 @@ class mod_scorm_mod_form extends moodleform_mod {
$mform->addElement('static', 'attempts', get_string('attempts','scorm')); $mform->addElement('static', 'attempts', get_string('attempts','scorm'));
// Max Attempts // Max Attempts
$attempts = array(0 => get_string('nolimit','scorm'));
for ($i=1; $i<=$CFG->scorm_maxattempts; $i++) { for ($i=1; $i<=$CFG->scorm_maxattempts; $i++) {
if ($i == 1) { if ($i == 1) {
$attempts[$i] = $i . ' ' . get_string('attempt','scorm'); $attempts[$i] = $i . ' ' . get_string('attempt','scorm');