Browse files

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

…le into MOODLE_21_STABLE
  • Loading branch information...
2 parents 62bd66a + aee4f04 commit 5d497d7f4b6cb91c746f66b88e4b3d1e5d4d753f @stronk7 stronk7 committed Dec 8, 2011
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/navigationlib.php
View
10 lib/navigationlib.php
@@ -1247,6 +1247,16 @@ public function initialise() {
}
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 5d497d7

Please sign in to comment.