diff --git a/lib/navigationlib.php b/lib/navigationlib.php index 352ebb8cfa3..1b8e2222194 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -1135,6 +1135,16 @@ class global_navigation extends navigation_node { } break; } + } else { + // We need to check if the user is viewing a front page module. + // If so then there is potentially more content to load yet for that + // module. + if ($this->page->context->contextlevel == CONTEXT_MODULE) { + $activitynode = $this->rootnodes['site']->get($this->page->cm->id, navigation_node::TYPE_ACTIVITY); + if ($activitynode) { + $this->load_activity($this->page->cm, $this->page->course, $activitynode); + } + } } $limit = 20;