mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-23626 Fixed bug causing course and general user activity reports to be marked active at the same time
This commit is contained in:
parent
6f05796919
commit
e96bc3f9e5
1 changed files with 3 additions and 0 deletions
|
@ -1824,6 +1824,9 @@ class global_navigation extends navigation_node {
|
|||
if ($iscurrentuser && !$forceforcontext) {
|
||||
// If it's the current user the information will go under the profile root node
|
||||
$usernode = $this->rootnodes['myprofile'];
|
||||
$course = get_site();
|
||||
$coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
$issitecourse = true;
|
||||
} else {
|
||||
if (!$issitecourse) {
|
||||
// Not the current user so add it to the participants node for the current course
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue