Browse files

Merge branch 'MDL-34204_23' of git://github.com/timhunt/moodle into M…

…OODLE_23_STABLE
  • Loading branch information...
2 parents 9907248 + 1b36a75 commit 682661d87a0587321d86bc579e07eec833f827c0 @danpoltawski danpoltawski committed Nov 19, 2012
Showing with 6 additions and 2 deletions.
  1. +1 −1 grade/report/grader/index.php
  2. +5 −1 grade/report/grader/lib.php
View
2 grade/report/grader/index.php
@@ -107,7 +107,7 @@
// 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');
View
6 grade/report/grader/lib.php
@@ -1580,13 +1580,17 @@ protected function get_collapsing_icon($element) {
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);

0 comments on commit 682661d

Please sign in to comment.