Permalink
Browse files

[BugFix] Bug #4586 in the moodle bug tracker

Please, dont forget to apply bug fixes to head too. ;-)

Merged from MOODLE_15_STABLE
  • Loading branch information...
1 parent 1a49694 commit cfae73b6b414a9035c3b2542e89df6b3a2e53acd stronk7 committed Jan 14, 2006
Showing with 2 additions and 1 deletion.
  1. +2 −1 blocks/activity_modules/block_activity_modules.php
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
class block_activity_modules extends block_list {
function init() {
@@ -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 cfae73b

Please sign in to comment.