MDL-32490 Offline assignment: do not display lateness information
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
89d13f61ca
commit
48dd268c8d
@@ -415,6 +415,12 @@ class assignment_base {
|
||||
return $submitted;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Whether this assignment type supports lateness information - true by default
|
||||
*/
|
||||
function supports_lateness() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @todo Document this function
|
||||
@@ -1443,8 +1449,8 @@ class assignment_base {
|
||||
if ($auser->timemodified > 0) {
|
||||
$studentmodifiedcontent = $this->print_student_answer($auser->id)
|
||||
. userdate($auser->timemodified);
|
||||
if ($assignment->timedue && $auser->timemodified > $assignment->timedue) {
|
||||
$studentmodifiedcontent .= assignment_display_lateness($auser->timemodified, $assignment->timedue);
|
||||
if ($assignment->timedue && $auser->timemodified > $assignment->timedue && $this->supports_lateness()) {
|
||||
$studentmodifiedcontent .= $this->display_lateness($auser->timemodified);
|
||||
$rowclass = 'late';
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user