Permalink
Browse files

[BugFix] Bug #4586 in the moodle bug tracker

  • Loading branch information...
michaelpenne
michaelpenne committed Jan 13, 2006
1 parent 4eec54f commit 451e99a00046e6807e2f5de25c2d693967eced0e
Showing with 1 addition and 0 deletions.
  1. +1 −0 blocks/activity_modules/block_activity_modules.php
@@ -13,6 +13,7 @@ function get_content() {
// Hacker's improvised caching scheme: avoid fetching the mod
// data from db if the course format has already fetched them
if(!isset($GLOBALS['modnamesplural']) || !isset($GLOBALS['modnamesused'])) {
+ require_once($CFG->dirroot.'/course/lib.php');
get_all_mods($this->instance->pageid, $mods, $modnames, $modnamesplural, $modnamesused);
}
else {

0 comments on commit 451e99a

Please sign in to comment.