mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-27990 assignment: removed a redundant retrieval of a user preference
This commit is contained in:
parent
be34802d23
commit
83dfca3fa3
1 changed files with 0 additions and 2 deletions
|
@ -2302,12 +2302,10 @@ class mod_assignment_grading_form extends moodleform {
|
||||||
default :
|
default :
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$lastmailinfo = get_user_preferences('assignment_mailinfo', 1) ? array('checked'=>'checked') : array();
|
|
||||||
$mform->addElement('hidden', 'mailinfo_h', "0");
|
$mform->addElement('hidden', 'mailinfo_h', "0");
|
||||||
$mform->setType('mailinfo_h', PARAM_INT);
|
$mform->setType('mailinfo_h', PARAM_INT);
|
||||||
$mform->addElement('checkbox', 'mailinfo',get_string('enablenotification','assignment').
|
$mform->addElement('checkbox', 'mailinfo',get_string('enablenotification','assignment').
|
||||||
$OUTPUT->help_icon('enablenotification', 'assignment') .':' );
|
$OUTPUT->help_icon('enablenotification', 'assignment') .':' );
|
||||||
$mform->updateElementAttr('mailinfo', $lastmailinfo);
|
|
||||||
$mform->setType('mailinfo', PARAM_INT);
|
$mform->setType('mailinfo', PARAM_INT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue