mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-9206 Readded unlimited attempts option (Sorry I miss it)
This commit is contained in:
parent
97be053372
commit
9a71cd85d8
1 changed files with 1 additions and 0 deletions
|
@ -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');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue