Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 11694f391e7cd16f8cdc48d0f70f95589a1bb4af 1 parent ff63a3a
Andrew Davis authored November 08, 2012
2  grade/edit/tree/calculation.php
@@ -48,7 +48,7 @@
48 48
 
49 49
 // default return url
50 50
 $gpr = new grade_plugin_return();
51  
-$returnurl = $gpr->get_return_url($CFG->wwwroot.'/grade/report.php?id='.$course->id);
  51
+$returnurl = $gpr->get_return_url($CFG->wwwroot.'/grade/report/index.php?id='.$course->id);
52 52
 
53 53
 if (!$grade_item = grade_item::fetch(array('id'=>$id, 'courseid'=>$course->id))) {
54 54
     print_error('invaliditemid');
2  grade/edit/tree/grade.php
@@ -57,7 +57,7 @@
57 57
 
58 58
 // default return url
59 59
 $gpr = new grade_plugin_return();
60  
-$returnurl = $gpr->get_return_url($CFG->wwwroot.'/grade/report.php?id='.$course->id);
  60
+$returnurl = $gpr->get_return_url($CFG->wwwroot.'/grade/report/index.php?id='.$course->id);
61 61
 
62 62
 // security checks!
63 63
 if (!empty($id)) {

0 notes on commit 11694f3

Please sign in to comment.
Something went wrong with that request. Please try again.