[BugFix] Bug #4586 in the moodle bug tracker

This commit is contained in:
michaelpenne
2006-01-13 19:26:36 +00:00
parent 4eec54f20e
commit 451e99a000
@@ -13,6 +13,7 @@ class block_activity_modules extends block_list {
// 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 {