Merge branch 'MDL-36331_redirect' of git://github.com/andyjdavis/moodle
authorDan Poltawski <dan@moodle.com>
Thu, 15 Nov 2012 06:40:42 +0000 (14:40 +0800)
committerDan Poltawski <dan@moodle.com>
Thu, 15 Nov 2012 06:40:42 +0000 (14:40 +0800)
grade/edit/tree/calculation.php
grade/edit/tree/grade.php

index ff89761..21e2d7d 100644 (file)
@@ -48,7 +48,7 @@ require_capability('moodle/grade:manage', $context);
 
 // default return url
 $gpr = new grade_plugin_return();
-$returnurl = $gpr->get_return_url($CFG->wwwroot.'/grade/report.php?id='.$course->id);
+$returnurl = $gpr->get_return_url($CFG->wwwroot.'/grade/report/index.php?id='.$course->id);
 
 if (!$grade_item = grade_item::fetch(array('id'=>$id, 'courseid'=>$course->id))) {
     print_error('invaliditemid');
index c3c8a0a..8850622 100644 (file)
@@ -57,7 +57,7 @@ if (!has_capability('moodle/grade:manage', $context)) {
 
 // default return url
 $gpr = new grade_plugin_return();
-$returnurl = $gpr->get_return_url($CFG->wwwroot.'/grade/report.php?id='.$course->id);
+$returnurl = $gpr->get_return_url($CFG->wwwroot.'/grade/report/index.php?id='.$course->id);
 
 // security checks!
 if (!empty($id)) {