From ee9d740ccf6857b3bec7110969d9bc0183e48d25 Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Wed, 6 Dec 2023 13:55:15 +0800 Subject: [PATCH] MDL-80043 gradereport_grader: No need to pass header parameter 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. --- grade/report/grader/index.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/grade/report/grader/index.php b/grade/report/grader/index.php index 5146f6b6301..fb6e7818606 100644 --- a/grade/report/grader/index.php +++ b/grade/report/grader/index.php @@ -107,13 +107,11 @@ if (!empty($target) && !empty($action) && confirm_sesskey()) { 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