Skip to content

Commit

Permalink
[BugFix] Bug #4586 in the moodle bug tracker
Browse files Browse the repository at this point in the history
Please, dont forget to apply bug fixes to head too. ;-)

Merged from MOODLE_15_STABLE
  • Loading branch information
stronk7 committed Jan 14, 2006
1 parent 1a49694 commit cfae73b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blocks/activity_modules/block_activity_modules.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?PHP //$Id$
<?php //$Id$

class block_activity_modules extends block_list {
function init() {
Expand All @@ -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 {
Expand Down

0 comments on commit cfae73b

Please sign in to comment.