Permalink
Browse files

MDL-30582 navigation: Fixed regression in generation of front page mo…

…dules
  • Loading branch information...
1 parent 9283723 commit aee4f04ec754891f31513e8ff3d30a89231ac395 Sam Hemelryk committed Dec 6, 2011
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/navigationlib.php
View
@@ -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 aee4f04

Please sign in to comment.