mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-36331_redirect' of git://github.com/andyjdavis/moodle
This commit is contained in:
commit
391678f6fa
2 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ require_capability('moodle/grade:manage', $context);
|
||||||
|
|
||||||
// default return url
|
// default return url
|
||||||
$gpr = new grade_plugin_return();
|
$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))) {
|
if (!$grade_item = grade_item::fetch(array('id'=>$id, 'courseid'=>$course->id))) {
|
||||||
print_error('invaliditemid');
|
print_error('invaliditemid');
|
||||||
|
|
|
@ -57,7 +57,7 @@ if (!has_capability('moodle/grade:manage', $context)) {
|
||||||
|
|
||||||
// default return url
|
// default return url
|
||||||
$gpr = new grade_plugin_return();
|
$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!
|
// security checks!
|
||||||
if (!empty($id)) {
|
if (!empty($id)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue