Skip to content

Commit

Permalink
Merge branch 'MDL-34645_23' of git://github.com/aolley/moodle into MO…
Browse files Browse the repository at this point in the history
…ODLE_23_STABLE
  • Loading branch information
Sam Hemelryk committed Aug 5, 2012
2 parents 9d705d4 + 10813a0 commit 3d84e69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions enrol/manual/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ public function get_manual_enrol_button(course_enrolment_manager $manager) {
$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(
Expand All @@ -224,6 +225,7 @@ public function get_manual_enrol_button(course_enrolment_manager $manager) {
'url' => $manager->get_moodlepage()->url->out(false),
'optionsStartDate' => $startdateoptions,
'defaultRole' => $instance->roleid,
'defaultDuration' => $defaultduration,
'disableGradeHistory' => $CFG->disablegradehistory,
'recoverGradesDefault'=> ''
);
Expand Down

0 comments on commit 3d84e69

Please sign in to comment.