mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Merge branch 'master-MDL-67467' of https://github.com/yao9394/moodle
This commit is contained in:
commit
857fabb618
@ -315,7 +315,11 @@ foreach($activities as $activity) {
|
||||
$datepassedclass = $datepassed ? 'completion-expired' : '';
|
||||
|
||||
if ($activity->completionexpected) {
|
||||
$datetext=userdate($activity->completionexpected,get_string('strftimedate','langconfig'));
|
||||
if ($csv) {
|
||||
$datetext = userdate($activity->completionexpected, "%F %T");
|
||||
} else {
|
||||
$datetext = userdate($activity->completionexpected, get_string('strftimedate', 'langconfig'));
|
||||
}
|
||||
} else {
|
||||
$datetext='';
|
||||
}
|
||||
@ -415,6 +419,9 @@ foreach($progress as $user) {
|
||||
$fulldescribe=get_string('progress-title','completion',$a);
|
||||
|
||||
if ($csv) {
|
||||
if ($date != '') {
|
||||
$date = userdate($thisprogress->timemodified, "%F %T");
|
||||
}
|
||||
print $sep.csv_quote($describe).$sep.csv_quote($date);
|
||||
} else {
|
||||
$celltext = $OUTPUT->pix_icon('i/' . $completionicon, s($fulldescribe));
|
||||
|
Loading…
x
Reference in New Issue
Block a user