Permalink
Browse files

Merge branch 'wip-MDL-38701-m24' of git://github.com/marinaglancy/moo…

…dle into MOODLE_24_STABLE
  • Loading branch information...
2 parents bd11908 + 4ea004c commit 3a509e1a6a69c4fc6973120f48dd5f3029469fb4 @danpoltawski danpoltawski committed Apr 8, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/blocklib.php
View
@@ -2156,6 +2156,7 @@ function blocks_add_default_course_blocks($course) {
$blocknames = blocks_parse_default_blocks_list($CFG->{'defaultblocks_' . $course->format});
} else {
+ require_once($CFG->dirroot. '/course/lib.php');
$blocknames = course_get_format($course)->get_default_blocks();
}

0 comments on commit 3a509e1

Please sign in to comment.