From: skodak Date: Sat, 30 Sep 2006 21:02:09 +0000 (+0000) Subject: fixed Fatal error: Call to undefined function: print_recent_activity() when adding... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8ad22079655e7f5400247c0b8bc1734a3664440d;p=moodle.git fixed Fatal error: Call to undefined function: print_recent_activity() when adding Recent Activity as a sticky block MDL-6437 and blocks block database MDL-5931 --- diff --git a/lib/blocklib.php b/lib/blocklib.php index 480794d6e4..d9140db704 100644 --- a/lib/blocklib.php +++ b/lib/blocklib.php @@ -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) {