Permalink
Browse files

MDL-36331 core_grade: fixed up 2 incorrect default return URLs

  • Loading branch information...
1 parent 8ccaa29 commit 0d02aa53ad094128194a4e0b6e3fc765a2f436ca @andyjdavis andyjdavis committed Nov 8, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 grade/edit/tree/calculation.php
  2. +1 −1 grade/edit/tree/grade.php
View
2 grade/edit/tree/calculation.php
@@ -48,7 +48,7 @@
// 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');
View
2 grade/edit/tree/grade.php
@@ -57,7 +57,7 @@
// 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)) {

0 comments on commit 0d02aa5

Please sign in to comment.