Skip to content

Commit

Permalink
Merge branch 'w43_MDL-29984_m22_enroltoday' of git://github.com/skoda…
Browse files Browse the repository at this point in the history
…k/moodle
  • Loading branch information
Aparup Banerjee committed Oct 31, 2011
2 parents b2851c8 + 4f500c2 commit b6d2f5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enrol/manual/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@ public function get_manual_enrol_button(course_enrolment_manager $manager) {
$startdateoptions = array();
$timeformat = get_string('strftimedatefullshort');
if ($startdate > 0) {
$today = time();
$today = make_timestamp(date('Y', $today), date('m', $today), date('d', $today), 0, 0, 0);
$startdateoptions[2] = get_string('coursestart') . ' (' . userdate($startdate, $timeformat) . ')';
}
$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) . ')' ;

$modules = array('moodle-enrol_manual-quickenrolment', 'moodle-enrol_manual-quickenrolment-skin');
Expand Down

0 comments on commit b6d2f5b

Please sign in to comment.