Skip to content

Commit

Permalink
MDL-61482 mod_assign: Clean html in offline grading CSV
Browse files Browse the repository at this point in the history
  • Loading branch information
zig-moodle committed Jun 19, 2018
1 parent 9e7c397 commit 8be71d3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions mod/assign/gradingtable.php
Original file line number Diff line number Diff line change
Expand Up @@ -1121,11 +1121,10 @@ public function col_allowsubmissionsfromdate(stdClass $row) {

if ($row->allowsubmissionsfromdate) {
$userdate = userdate($row->allowsubmissionsfromdate);
$o = $this->output->container($userdate, 'allowsubmissionsfromdate');
$o = ($this->is_downloading()) ? $userdate : $this->output->container($userdate, 'allowsubmissionsfromdate');
}

return $o;

}

/**
Expand All @@ -1139,11 +1138,10 @@ public function col_duedate(stdClass $row) {

if ($row->duedate) {
$userdate = userdate($row->duedate);
$o = $this->output->container($userdate, 'duedate');
$o = ($this->is_downloading()) ? $userdate : $this->output->container($userdate, 'duedate');
}

return $o;

}

/**
Expand All @@ -1157,11 +1155,10 @@ public function col_cutoffdate(stdClass $row) {

if ($row->cutoffdate) {
$userdate = userdate($row->cutoffdate);
$o = $this->output->container($userdate, 'cutoffdate');
$o = ($this->is_downloading()) ? $userdate : $this->output->container($userdate, 'cutoffdate');
}

return $o;

}

/**
Expand Down

0 comments on commit 8be71d3

Please sign in to comment.