Skip to content

Commit

Permalink
MDL-37924 quiz settings: change wrong 'fix' => 'adv'.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt authored and danpoltawski committed Feb 12, 2013
1 parent 6904688 commit b4be77c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions mod/quiz/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,17 @@
// Time limit.
$quizsettings->add(new admin_setting_configtext_with_advanced('quiz/timelimit',
get_string('timelimitsec', 'quiz'), get_string('configtimelimitsec', 'quiz'),
array('value' => '0', 'fix' => false), PARAM_INT));
array('value' => '0', 'adv' => false), PARAM_INT));

// What to do with overdue attempts.
$quizsettings->add(new mod_quiz_admin_setting_overduehandling('quiz/overduehandling',
get_string('overduehandling', 'quiz'), get_string('overduehandling_desc', 'quiz'),
array('value' => 'autoabandon', 'fix' => false), null));
array('value' => 'autoabandon', 'adv' => false), null));

// Grace period time.
$quizsettings->add(new admin_setting_configtext_with_advanced('quiz/graceperiod',
get_string('graceperiod', 'quiz'), get_string('graceperiod_desc', 'quiz'),
array('value' => '86400', 'fix' => false), PARAM_INT));
array('value' => '86400', 'adv' => false), PARAM_INT));

// Minimum grace period used behind the scenes.
$quizsettings->add(new admin_setting_configtext('quiz/graceperiodmin',
Expand All @@ -77,12 +77,12 @@
}
$quizsettings->add(new admin_setting_configselect_with_advanced('quiz/attempts',
get_string('attemptsallowed', 'quiz'), get_string('configattemptsallowed', 'quiz'),
array('value' => 0, 'fix' => false), $options));
array('value' => 0, 'adv' => false), $options));

// Grading method.
$quizsettings->add(new mod_quiz_admin_setting_grademethod('quiz/grademethod',
get_string('grademethod', 'quiz'), get_string('configgrademethod', 'quiz'),
array('value' => QUIZ_GRADEHIGHEST, 'fix' => false), null));
array('value' => QUIZ_GRADEHIGHEST, 'adv' => false), null));

// Maximum grade.
$quizsettings->add(new admin_setting_configtext('quiz/maximumgrade',
Expand All @@ -102,7 +102,7 @@
}
$quizsettings->add(new admin_setting_configselect_with_advanced('quiz/questionsperpage',
get_string('newpageevery', 'quiz'), get_string('confignewpageevery', 'quiz'),
array('value' => 1, 'fix' => false), $perpage));
array('value' => 1, 'adv' => false), $perpage));

// Navigation method.
$quizsettings->add(new admin_setting_configselect_with_advanced('quiz/navmethod',
Expand Down Expand Up @@ -153,7 +153,7 @@
}
$quizsettings->add(new admin_setting_configselect_with_advanced('quiz/decimalpoints',
get_string('decimalplaces', 'quiz'), get_string('configdecimalplaces', 'quiz'),
array('value' => 2, 'fix' => false), $options));
array('value' => 2, 'adv' => false), $options));

// Decimal places for question grades.
$options = array(-1 => get_string('sameasoverall', 'quiz'));
Expand All @@ -163,7 +163,7 @@
$quizsettings->add(new admin_setting_configselect_with_advanced('quiz/questiondecimalpoints',
get_string('decimalplacesquestion', 'quiz'),
get_string('configdecimalplacesquestion', 'quiz'),
array('value' => -1, 'fix' => true), $options));
array('value' => -1, 'adv' => true), $options));

// Show blocks during quiz attempts.
$quizsettings->add(new admin_setting_configcheckbox_with_advanced('quiz/showblocks',
Expand All @@ -173,20 +173,20 @@
// Password.
$quizsettings->add(new admin_setting_configtext_with_advanced('quiz/password',
get_string('requirepassword', 'quiz'), get_string('configrequirepassword', 'quiz'),
array('value' => '', 'fix' => true), PARAM_TEXT));
array('value' => '', 'adv' => true), PARAM_TEXT));

// IP restrictions.
$quizsettings->add(new admin_setting_configtext_with_advanced('quiz/subnet',
get_string('requiresubnet', 'quiz'), get_string('configrequiresubnet', 'quiz'),
array('value' => '', 'fix' => true), PARAM_TEXT));
array('value' => '', 'adv' => true), PARAM_TEXT));

// Enforced delay between attempts.
$quizsettings->add(new admin_setting_configtext_with_advanced('quiz/delay1',
get_string('delay1st2nd', 'quiz'), get_string('configdelay1st2nd', 'quiz'),
array('value' => 0, 'fix' => true), PARAM_INT));
array('value' => 0, 'adv' => true), PARAM_INT));
$quizsettings->add(new admin_setting_configtext_with_advanced('quiz/delay2',
get_string('delaylater', 'quiz'), get_string('configdelaylater', 'quiz'),
array('value' => 0, 'fix' => true), PARAM_INT));
array('value' => 0, 'adv' => true), PARAM_INT));

// Browser security.
$quizsettings->add(new mod_quiz_admin_setting_browsersecurity('quiz/browsersecurity',
Expand Down

0 comments on commit b4be77c

Please sign in to comment.