mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'MDL-34645' of git://github.com/aolley/moodle
This commit is contained in:
commit
1dba7b9a40
@ -215,6 +215,7 @@ class enrol_manual_plugin extends enrol_plugin {
|
||||
$today = time();
|
||||
$today = make_timestamp(date('Y', $today), date('m', $today), date('d', $today), 0, 0, 0);
|
||||
$startdateoptions[3] = get_string('today') . ' (' . userdate($today, $timeformat) . ')' ;
|
||||
$defaultduration = $instance->enrolperiod > 0 ? $instance->enrolperiod / 86400 : '';
|
||||
|
||||
$modules = array('moodle-enrol_manual-quickenrolment', 'moodle-enrol_manual-quickenrolment-skin');
|
||||
$arguments = array(
|
||||
@ -224,6 +225,7 @@ class enrol_manual_plugin extends enrol_plugin {
|
||||
'url' => $manager->get_moodlepage()->url->out(false),
|
||||
'optionsStartDate' => $startdateoptions,
|
||||
'defaultRole' => $instance->roleid,
|
||||
'defaultDuration' => $defaultduration,
|
||||
'disableGradeHistory' => $CFG->disablegradehistory,
|
||||
'recoverGradesDefault'=> ''
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user