Skip to content

Commit

Permalink
MDL-80043 gradereport_grader: No need to pass header parameter
Browse files Browse the repository at this point in the history
No need to pass a value for the header parameter in
print_grade_page_head() because:
1. The default grade plugin name will be used anyway.
2. It will allow the use of the editingmode_title lang string for the
grader report so the page title can reflect the display mode of the
grader report, especially when editing mode is turned on.
  • Loading branch information
junpataleta committed Dec 6, 2023
1 parent a2ddc55 commit ee9d740
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions grade/report/grader/index.php
Expand Up @@ -107,13 +107,11 @@
grade_report_grader::do_process_action($target, $action, $courseid);
}

$reportname = get_string('pluginname', 'gradereport_grader');

// Do this check just before printing the grade header (and only do it once).
grade_regrade_final_grades_if_required($course);

// Print header
print_grade_page_head($COURSE->id, 'report', 'grader', $reportname, false, $buttons);
print_grade_page_head($COURSE->id, 'report', 'grader', false, false, $buttons);

//Initialise the grader report object that produces the table
//the class grade_report_grader_ajax was removed as part of MDL-21562
Expand Down

0 comments on commit ee9d740

Please sign in to comment.