Skip to content

Commit

Permalink
MDL-30582 navigation: Fixed regression in generation of front page mo…
Browse files Browse the repository at this point in the history
…dules
  • Loading branch information
Sam Hemelryk committed Dec 6, 2011
1 parent 9283723 commit aee4f04
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/navigationlib.php
Expand Up @@ -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;
Expand Down

0 comments on commit aee4f04

Please sign in to comment.