]> git.mjollnir.org Git - moodle.git/commitdiff
fixed Fatal error: Call to undefined function: print_recent_activity() when adding...
authorskodak <skodak>
Sat, 30 Sep 2006 21:02:09 +0000 (21:02 +0000)
committerskodak <skodak>
Sat, 30 Sep 2006 21:02:09 +0000 (21:02 +0000)
lib/blocklib.php

index 480794d6e49342ef6c7bef42ebf6eb0ec708ca9b..d9140db704eee674018f018146fbdf018f019a3f 100644 (file)
@@ -16,7 +16,7 @@ define('BLOCKS_PINNED_FALSE',1);
 define('BLOCKS_PINNED_BOTH',2);
 
 require_once($CFG->libdir.'/pagelib.php');
-
+require_once($CFG->dirroot.'/course/lib.php'); // needed to solve all those: Call to undefined function: print_recent_activity() when adding Recent Activity 
 
 // Returns false if this block is incompatible with the current version of Moodle.
 function block_is_compatible($blockname) {