Skip to content
Browse files

Merge branch 'w51_MDL-30364_m22_report' of git://github.com/skodak/mo…

…odle into MOODLE_22_STABLE
  • Loading branch information...
2 parents 56b7744 + d59ef54 commit 424f91c056bf4d57770f601174f4a07aef458740 Sam Hemelryk committed Dec 12, 2011
Showing with 3 additions and 1 deletion.
  1. +2 −0 course/user.php
  2. +1 −1 lib/navigationlib.php
View
2 course/user.php
@@ -55,6 +55,8 @@
$coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
$personalcontext = get_context_instance(CONTEXT_USER, $user->id);
+$PAGE->set_url('/course/user.php', array('id'=>$id, 'user'=>$user->id, 'mode'=>$mode));
+
require_login();
$PAGE->set_pagelayout('admin');
if (has_capability('moodle/user:viewuseractivitiesreport', $personalcontext) and !is_enrolled($coursecontext)) {
View
2 lib/navigationlib.php
@@ -2014,7 +2014,7 @@ protected function load_for_user($user=null, $forceforcontext=false) {
}
}
if ($gradeaccess) {
- $reporttab->add(get_string('grade'), new moodle_url('/course/user.php', array('mode'=>'grade', 'id'=>$course->id)));
+ $reporttab->add(get_string('grade'), new moodle_url('/course/user.php', array('mode'=>'grade', 'id'=>$course->id, 'user'=>$usercontext->instanceid)));
}
}
// Check the number of nodes in the report node... if there are none remove the node

0 comments on commit 424f91c

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