From 1b36a754d0a4e1044bf691b88d0d5d0d17186680 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Thu, 15 Nov 2012 13:42:32 +0000 Subject: [PATCH] MDL-34204 grader report: static call to non-static method. --- grade/report/grader/index.php | 2 +- grade/report/grader/lib.php | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/grade/report/grader/index.php b/grade/report/grader/index.php index 4549995ad5d..2770aede105 100644 --- a/grade/report/grader/index.php +++ b/grade/report/grader/index.php @@ -107,7 +107,7 @@ grade_regrade_final_grades($courseid); // Perform actions if (!empty($target) && !empty($action) && confirm_sesskey()) { - grade_report_grader::process_action($target, $action); + grade_report_grader::do_process_action($target, $action); } $reportname = get_string('pluginname', 'gradereport_grader'); diff --git a/grade/report/grader/lib.php b/grade/report/grader/lib.php index 3dbac536286..3b4cc424c9f 100644 --- a/grade/report/grader/lib.php +++ b/grade/report/grader/lib.php @@ -1580,13 +1580,17 @@ class grade_report_grader extends grade_report { return $icon; } + public function process_action($target, $action) { + return self::do_process_action($target, $action); + } + /** * Processes a single action against a category, grade_item or grade. * @param string $target eid ({type}{id}, e.g. c4 for category4) * @param string $action Which action to take (edit, delete etc...) * @return */ - public function process_action($target, $action) { + public static function do_process_action($target, $action) { // TODO: this code should be in some grade_tree static method $targettype = substr($target, 0, 1); $targetid = substr($target, 1); -- 2.43.0