Commit 18a00359 authored by skodak's avatar skodak
Browse files

MDL-19029 fixed incorrect closing of divs on grader report; merged from MOODLE_19_STABLE

parent ad310aa4
......@@ -166,7 +166,8 @@ $reporthtml .= $report->get_studentshtml();
$reporthtml .= $report->get_rangehtml();
$reporthtml .= $report->get_avghtml(true);
$reporthtml .= $report->get_avghtml();
$reporthtml .= "</tbody></table></div></div>";
$reporthtml .= $report->get_endhtml();
$reporthtml .= '</div>';
// print submit button
if ($USER->gradeediting[$course->id] and !$report->get_pref('enableajax')) {
......
......@@ -1074,6 +1074,21 @@ class grade_report_grader extends grade_report {
return $studentshtml;
}
/**
* Closes all open elements
*/
public function get_endhtml() {
global $CFG, $USER;
$fixedstudents = empty($USER->screenreader) && $CFG->grade_report_fixedstudents;
if ($fixedstudents) {
return "</tbody></table></div>";
} else {
return "</tbody></table>";
}
}
/**
* Builds and return the HTML row of column totals.
* @param bool $grouponly Whether to return only group averages or all averages.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment