Merge branch 'w33_MDL-34851_m24_enrolledsince' of git://github.com/skodak/moodle

This commit is contained in:
Aparup Banerjee 2012-08-13 11:03:43 +08:00
commit b567fcfb50
2 changed files with 3 additions and 1 deletions

View File

@ -863,7 +863,8 @@ class course_enrolment_manager {
$period = get_string('periodend', 'enrol', userdate($ue->timeend));
$periodoutside = ($ue->timeend && $now > $ue->timeend);
} else {
$period = '';
// If there is no start or end show when user was enrolled.
$period = get_string('periodnone', 'enrol', userdate($ue->timecreated));
$periodoutside = false;
}
$details['enrolments'][$ue->id] = array(

View File

@ -80,6 +80,7 @@ $string['participationactive'] = 'Active';
$string['participationstatus'] = 'Status';
$string['participationsuspended'] = 'Suspended';
$string['periodend'] = 'until {$a}';
$string['periodnone'] = 'enrolled {$a}';
$string['periodstart'] = 'from {$a}';
$string['periodstartend'] = 'from {$a->start} until {$a->end}';
$string['recovergrades'] = 'Recover user\'s old grades if possible';