mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
Merge branch 'MDL-83850-master' of https://github.com/danghieu1407/moodle
This commit is contained in:
commit
1414b38e0f
1 changed files with 3 additions and 7 deletions
|
@ -314,14 +314,10 @@ foreach($activities as $activity) {
|
||||||
$datepassed = $activity->completionexpected && $activity->completionexpected <= time();
|
$datepassed = $activity->completionexpected && $activity->completionexpected <= time();
|
||||||
$datepassedclass = $datepassed ? 'completion-expired' : '';
|
$datepassedclass = $datepassed ? 'completion-expired' : '';
|
||||||
|
|
||||||
if ($activity->completionexpected) {
|
if ($activity->completionexpected && !$csv) {
|
||||||
if ($csv) {
|
$datetext = userdate($activity->completionexpected, get_string('strftimedate', 'langconfig'));
|
||||||
$datetext = userdate($activity->completionexpected, "%F %T");
|
|
||||||
} else {
|
|
||||||
$datetext = userdate($activity->completionexpected, get_string('strftimedate', 'langconfig'));
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
$datetext='';
|
$datetext = get_string('completed');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Some names (labels) come URL-encoded and can be very long, so shorten them
|
// Some names (labels) come URL-encoded and can be very long, so shorten them
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue