Permalink
Browse files

Merge branch 'wip-MDL-30582-m22' of git://github.com/samhemelryk/mood…

…le into MOODLE_22_STABLE
  • Loading branch information...
stronk7 committed Dec 8, 2011
2 parents cf2d731 + 28a6552 commit da3494a8c42a1bf08fa921f4a9cd73fd4c1df443
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/navigationlib.php
View
@@ -1240,6 +1240,16 @@ public function initialise() {
$sections = $this->load_course_sections($course, $coursenode);
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;

0 comments on commit da3494a

Please sign in to comment.