[BugFix] Bug #4586 in the moodle bug tracker
Please, dont forget to apply bug fixes to head too. ;-) Merged from MOODLE_15_STABLE
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?PHP //$Id$
|
||||
<?php //$Id$
|
||||
|
||||
class block_activity_modules extends block_list {
|
||||
function init() {
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user