fixing some warnings

This commit is contained in:
toyomoyo
2007-10-22 03:02:00 +00:00
parent cde191082a
commit a358f9b4e2
3 changed files with 2 additions and 5 deletions
+1 -3
View File
@@ -44,9 +44,7 @@ class grade_export_form extends moodleform {
$options = array('10'=>10, '20'=>20, '100'=>100, '1000'=>1000, '100000'=>100000);
$mform->addElement('select', 'previewrows', get_string('previewrows', 'grades'), $options);
if (!empty($features['updatedgrades'])) {
$mform->addElement('advcheckbox', 'updatedgradesonly', get_string('updatedgradesonly', 'grades'));
}
$mform->addElement('advcheckbox', 'updatedgradesonly', get_string('updatedgradesonly', 'grades'));
/// selections for decimal points and format, MDL-11667, defaults to site settings, if set
//$default_gradedisplaytype = $CFG->grade_export_displaytype;
-1
View File
@@ -76,7 +76,6 @@ class grade_export {
}
}
$this->export_letters = $export_letters;
$this->export_feedback = $export_feedback;
$this->userkey = '';
$this->previewrows = false;
+1 -1
View File
@@ -51,7 +51,7 @@ if (!empty($CFG->gradepublishing)) {
$CFG->gradepublishing = has_capability('gradeexport/xml:publish', $context);
}
$mform = new grade_export_form(null, array('idnumberrequired'=>true, 'publishing' => true, 'updatedgrades' => true));
$mform = new grade_export_form(null, array('idnumberrequired'=>true, 'publishing' => true));
// process post information
if ($data = $mform->get_data()) {